Examveda

What will be the output of the following R code?
> 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


This Question Belongs to R Programming >> R Programming Basics

Join The Discussion

Related Questions on R Programming Basics