Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Find the following type of vector?
a <- c(1,2,5.3,6,-2,4)

Find the following type of vector?
a <- c(1,2,5.3,6,-2,4)
a) Numeric
b) Character
c) Integer
d) Logical

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

Join The Discussion