Matrix in R

In R, matrix is a two-dimensional data structure that stores values of same data type in rows and columns. Unlike vectors, that were one dimensional, matrix can hold values in rows and columns. One can create matrix in R using the matrix() function. While creating a matrix using matrix() function, you need to specify data …

Matrix in R Read More »