发布网友
共1个回答
热心网友
用as.matrix, 如果数据类型都相符 > help(as.matrix) > t t t1 t2 1 1 2 2 15 33 > aMat aMat t1 t2 [1,] 1 2 [2,] 15 33 > class(aMat) [1] "matrix"