运行 ❯
获取您
自己的
网站
×
更改方向
更改主题,深色/浅色
前往 Spaces
thismatrix <- matrix(c("apple", "banana", "cherry", "orange","grape", "pineapple", "pear", "melon", "fig"), nrow = 3, ncol = 3) thismatrix[c(1,2),]
[,1] [,2] [,3] [1,] "apple" "orange" "pear" [2,] "banana" "grape" "melon"