矩阵a如下:

type moisture protein

[1,] 1 1 0

[2,] 1 1 1

[3,] 1 1 0

b=c(a[1,],a[2,])就是想把前两行连起来

输出为:

type moisture protein type moisture protein

[1,] 1 1 0 1 1 1

可是我不想要上面的列名type之类的,怎么办?

[1,] 1 1 0

回复 第2楼 的 Ihavenothing:恩,非常感谢!