Google News
logo
R - Quiz(MCQ)
Factors are created using the _______ function.
A)
C()
B)
Lists()
C)
Function()
D)
Array()

Correct Answer :   Function()


Explanation : Factors are created using the factor() function. The labels are always character irrespective of whether it is numeric or character or also Boolean etc. in the vector. The nlevels functions will give the count of levels.

Advertisement