0
给定矩阵M:如何获得sparseMatrix的零零索引?
M <- Matrix(c(1,0,0,0,0,1,0,0,0), nrow=3, sparse=T)
M
3 x 3 sparse Matrix of class "dtCMatrix"
[1,] 1 . .
[2,] . . .
[3,] . 1 .
我怎么能零个值,在该单元格中提取索引至极点的无法比拟的名单? 在这种情况下,例如像这样的data.frame:
x y
1 1 1
2 3 2
可以添加哪个包'矩阵()'从何而来? – Chase 2013-05-08 12:51:32