抱歉,如果太天真但我找不到简单的答案。我有两个矩阵:
> F5.Titers.reticulata1
3d 6d 12d 18d 24d
[1,] 6.34 15.64 256.37 1025.82 1025.34
[2,] 12.35 28.64 198.64 1658.41 970.00
[3,] 10.22 13.52 364.35 896.64 1236.69
[4,] 8.34 7.68 298.78 1536.17 1532.44
[5,] 6.16 28.64 345.11 1223.35 899.31
[6,] 7.37 6.45 287.46 956.33 2025.35
> F5.Titers.tankan1
3d 6d 12d 18d 24d
[1,] 6.35 15.34 315.36 1425.36 1102.13
[2,] 15.34 20.15 485.35 996.35 969.97
[3,] 10.21 25.55 263.35 568.36 1045.09
你喜欢堆积一个:
> Joint.matrix.hurray
[[reticulata1]]
3d 6d 12d 18d 24d
[1,] 6.34 15.64 256.37 1025.82 1025.34
[2,] 12.35 28.64 198.64 1658.41 970.00
[3,] 10.22 13.52 364.35 896.64 1236.69
[4,] 8.34 7.68 298.78 1536.17 1532.44
[5,] 6.16 28.64 345.11 1223.35 899.31
[6,] 7.37 6.45 287.46 956.33 2025.35
[[tankan1]]
3d 6d 12d 18d 24d
[1,] 6.35 15.34 315.36 1425.36 1102.13
[2,] 15.34 20.15 485.35 996.35 969.97
[3,] 10.21 25.55 263.35 568.36 1045.09
请注意,它们的行数不同,但列数相同。我希望将它们堆叠起来,如果可能的话,将数字保存为数字和名称。谢谢
答案 0 :(得分:2)
我们可以使用mget
创建list
matrices
lst <- mget(ls(pattern = "F5\\.Titers"))
names(lst) <- sub("F5.Titers.", "", names(lst))