Description Usage Arguments Value
Create a sparse matrix from matching vectors of row indices, column indices and values
1 | cast.sparse.matrix(rows, columns, values = NULL, agg.func = "sum")
|
rows |
a vector of row indices: [i,] |
columns |
a vector of column indices: [,j] |
values |
a vector of the values for each (non-zero) cell: [i,j] = value |
a sparse matrix of the dgTMatrix class (Matrix
package)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.