我有一个向量节点名作为
nodenames <- c("A","B","C","T","N","Z")
我有一个带有暗名的方形稀疏矩阵
Formal class 'dgCMatrix' [package "Matrix"] with 6 slots
..@ i : int [1:4149962] 1 2 3 4 5 9 11 12 13 14 ...
..@ p : int [1:3417] 0 1702 2710 3935 5411 6719 8141 9822 9822 11515 ...
..@ Dim : int [1:2] 3416 3416
..@ Dimnames:List of 2
.. ..$ : chr [1:3416] "A" "B" "AAL" "T" ...
.. ..$ : chr [1:3416] "A" "B" "AAL" "T" ...
..@ x : num [1:4149962] 2 1 1 3 1 1 2 19 3 2 ...
..@ factors : list()
如何在节点名中生成带有暗名的该矩阵的子集?