Matrix is an important data structure in R – Matrices are vectors with a dimension attribute or extension of Vecotrs. The dimension attribute is itself an integer vector of length 2 (number of rows, number of columns). m <- 1:10 dim(m) <- c(2, 5) m Output:- [,1] [,2] [,3] [,4] [,5] [1,] 1 3 5 […]

read more