We will see the basic matrix computations in the forthcoming steps. The matrix computations such as the cross-product of matrices, transpose, and inverse will be illustrated.
1:4vector by running
dimnames, that is, by running
A <- matrix(data=1:4, nrow=2, ncol=2, byrow=TRUE, dimnames = list(c("R_1", "R_2"),c("C_1", "C_2")))at the R console.
dimnames, and few more, with
dim(A); nrow(A); ncol(A); dimnames(A).