in Education by
Factors are created using the _______ function. (a) C() (b) Function() (c) Array() (d) Lists() I got this question during an internship interview. The origin of the question is Data Types in portion Nuts and Bolts and Getting Data In and Out of R Programming Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
The correct option is (b) Function() Best 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.

Related questions

0 votes
    Factors are the r-objects which are created using a _________ (a) Vector (b) Matrix (c) Lists (d) Array ... and Out of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    Lists can be created using the _______ function. (a) Matrix.li (b) Matrix.lists (c) Lists.matric (d) List ... and Out of R Programming Select the correct answer from above options...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    Numbers in R are generally treated as _______ precision real numbers. (a) single (b) double (c) real (d) ... and Out of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    Joining two lists can be achieved either using the _________ function. (a) Concat (b) Join (c) Reduce (d) ... and Out of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    Attributes of an object (if any) can be accessed using the ______ function. (a) objects() (b) attrib() (c ... and Out of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    In R using the function, ________ one can check the data type of vector. (a) Typeof() (b) Castof() (c) ... In and Out of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    vectors can be one of two types namely atomic vectors and _______ (a) Matrix (b) Vector (c) Lists (d) ... and Out of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    Which are indexed by either row or column using a specific name or number? (a) Datasets (b) Data frames (c ... and Out of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    Which function is used to combine the elements into a vector? (a) C() (b) D() (c) E() (d) F() I ... Data In and Out of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    Lists can be coerced with which function? (a) As.lists (b) Has.lists (c) In.lists (d) Co.lists The ... In and Out of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    To bind a row onto an already existing matrix, the ______ function can be used. (a) Rbind (b) Sbnd (c) ... and Out of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    Locator function gives output as ___________ (a) Matrix (b) Lists (c) Vector (d) Number I had been asked this ... Out of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    The _________ function returns a list of densities (y) corresponding to bin values (x). (a) Spline (b) ... Out of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    Density function gives output as ________ (a) Matrix (b) Lists (c) Vector (d) Number This question was posed ... Out of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    Which function can be used to determine the names assigned to a list? (a) Names (b) Name (c) Nam (d) ... In and Out of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
...