In R, logical values are coerced to numeric values: TRUE is equivalent to 1 and FALSE equals 0.