Posts

Showing posts with the label identity matrix

Matrix in R

Image
DATA TYPE: Graphical Representation of Data Types in R is shown as below: MATRIX: Matrix is represented as a two-dimensional structure. It can be created using matrix() function. CREATING MATRIX: a<-matrix(data = c(1:16), nrow = 8, ncol = 2, byrow = TRUE,dimnames = NULL) print(a)           [,1] [,2] [1,]    1    2 [2,]    3    4 [3,]    5    6 [4,]    7    8 [5,]    9   10 [6,]   11   12 [7,]   13   14 [8,]   15   16 nrow-       number of Rows in Matrix ncol-          number of Column in Matrix byrow-      Either TRUE or FALSE. If FALSE (the default) the matrix is filled by columns, otherwise                       matrix is filled by rows. dimnames -Either NULL or List of L...