Which Of The Following Is Valid Assignment #221
Which of the following is valid assignment?
This multiple choice question (MCQ) is related to the book/course gs gs110 R Language. It can also be found in gs gs110 Nuts and Bolts and Getting Data In and Out - Reading Datasets - Quiz No.1.
Which of the following is valid assignment?
> x <- fact(c("yes", "yes", "no", "yes", "no"))
> x <- factor(c("yes", "yes", "no", "yes", "no"))
> x <- factor(factor("yes", "yes", "no", "yes", "no"))
> x <- factor(factor("yes", "no", "no", "yes", "no"))