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.

How could be the matrix constructed by using the following R code?
m <- matrix(1:6, nrow = 2, ncol = 3)

How could be the matrix constructed by using the following R code?
m <- matrix(1:6, nrow = 2, ncol = 3)
a) row-wise
b) column-wise
c) any manner
d) data insufficient

Answer: b
Explanation: If nothing is mentioned, matrix is created column-wise. If we want in row-wise then we have to specify. We have to mention “by row” to create a matrix in row wise. The filter( ) function is used to extract subsets of rows from a data frame. This function is similar to the existing subset( ) function.

Join The Discussion