Description Usage Arguments Value
Convert a table-style sparse matrix representation to a sparse matrix
1 2 3 4 5 6 7 8 9 |
rowname_vals |
vector with the rownames of the values |
colname_vals |
vector with the colnames of the values |
values |
the values themselves (default is 1.0) |
total_rownames |
the universe of rownames, defaults to all the unique rowname_vals |
total_colnames |
the universe of colnames, defaults to all the unique colname_vals |
add_intercept |
whether to add an intercept term ("Intercept" will be added to total_colnames) |
a sparse matrix of dim(length(total_rownames),length(total_colnames)) with (at most) length(values) non-zero values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.