What will be the output of the following R code? [code] > x <- factor(c("yes", "yes", "no", "yes", "no")) > table(x) [/code]

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

Tìm kiếm

Back
Top