A=matrix(c(1:12),nrow=3,ncol=4,byrow=TRUE) print(A[1,2]) print(A[3,4]) print(A[2,]) print(A[,4]) print(A[,])
To embed this program on your website, copy the following code and paste it into your website's HTML: