Examveda
Examveda

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

A. matrix(1:9, nrow = 3, ncol = 3)

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


This Question Belongs to R Programming >> Introduction To R Programming

Join The Discussion

Related Questions on Introduction to R Programming