Beginner
R
Q20 / 100
How do you create a matrix with 2 rows and 3 columns from the numbers 1 through 6?
Correct! Well done.
Incorrect.
The correct answer is A) matrix(1:6, nrow = 2, ncol = 3)
A
Correct Answer
matrix(1:6, nrow = 2, ncol = 3)
Explanation
matrix() accepts a vector of data along with nrow and/or ncol to define the matrix dimensions.
Progress
20/100