Vidyalelo
R Programming · Q7

Introduction to R Programming

Programming · R Programming · question 7

Q7

In R, how is a matrix created using the matrix() function?

A.
matrix(1:9, nrow = 3, ncol = 3)
Answer
B.
create.matrix(1:9, rows = 3, columns = 3)
C.
[1, 2, 3; 4, 5, 6; 7, 8, 9]
D.
mat(1:9, 3, 3)

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board