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