March 2019
Beginner to intermediate
250 pages
6h 6m
English
To represent a matrix of n elements with r rows and c columns, the matrix command is used:
m<-matrix(c(1,2,3,4,5,6), nrow=2, ncol=3)m## [,1] [,2] [,3]## [1,] 1 3 5## [2,] 2 4 6
Read now
Unlock full access