What will be the output of the following R code?
> x <- factor(c("yes", "yes", "no", "yes", "no"))
> table(x)
> x <- factor(c("yes", "yes", "no", "yes", "no"))
> table(x)
A. no yes
2 3
B. yes no
2 3
C. no yes
2 2
D. yes yes
6 2
Answer: Option A
Join The Discussion