in Education by
Dataframes can be converted into a matrix by calling the following function data ______ (a) matr() (b) matrix() (c) matrixf() (d) matrixfunc() The question was posed to me during an online exam. Enquiry is from Basics topic in chapter History, Overview and Getting Started of R Programming Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
The correct option is (b) matrix() The explanation: as.matrix function should be used to coerce a data frame to a matrix. It might seem that the as.matrix() function should be used to coerce a data frame to a matrix.

Related questions

0 votes
    What is the function to set column names for a matrix? (a) names() (b) colnames() (c) col.names() ... Getting Started of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    Matrices can be created by row-binding with the help of the following function. (a) rjoin() (b) rbind() ... Started of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    Advanced programmers can write ______ code to manipulate R objects. (a) Python (b) Java (c) C (d) Java ... Started of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    They primary R system is available from the ______ (a) CRAN (b) CRWO (c) GNU (d) CRDO This question ... Started of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    R files has an extension ______ (a) .R (b) .S (c) .Rp (d) .c I got this question in quiz. ... and Getting Started of R Programming Select the correct answer from above options...
asked Feb 12, 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
    What is the function to set row names for a data frame? (a) row.names() (b) colnames() (c) col. ... Getting Started of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    Which of the following can be used to display the names of (most of) the objects which are currently stored ... of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    If the code is stored in the external file, which of the following function is used to call them to a ... Started of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    Functionality of R is divided into a number of __________ (a) Functions (b) Domains (c) Packages (d) Files ... Started of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    R functionality is divided into a number of ________ (a) Packages (b) Functions (c) Domains (d) Classes ... Started of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    ___________ hosts many add-on packages that can be used to extend the functionality of R. (a) CRAN (b) ... Started of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    __________ function is used to watch for all available packages in library. (a) lib() (b) fun.lib() (c ... Started of R Programming Select the correct answer from above options...
asked Feb 16, 2022 in Education by JackTerrance
0 votes
    What is the function used to test objects (returns a logical operator) if they are NA? (a) is.na() ... Started of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
...