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.

Dataframes can be converted into a matrix by calling the following function data ______

a) matr()
b) matrix()
c) matrixf()
d) matrixfunc()

Answer: b
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.

Join The Discussion