Q. What will be the output of the following R code?
> x <- data.frame(foo = 1:4, bar = c(T, T, F, F))
> ncol(x)
> x <- data.frame(foo = 1:4, bar = c(T, T, F, F))
> ncol(x)
β
Correct Answer: (A)
2