m1 <- 1:4 # m1 is a vector object with a sequence of elements dim(m1) <- c(2, 2) # define the dimension as 2X2 (2 rows and 2 columns) to make it a matrix m1 # ...
確定! 回上一頁