as.dense.matrix | R Documentation |
Title
as.dense.matrix(x, row = 1, col = 2, value = 3, keep.names = TRUE)
x |
a sparse matrix in the form a either a data.frame or data.table. Needs to have 3 columns. Default order: row | col | value. If order differs please specify 'row', 'col' and 'value' arguments. Row and col columns can be either integers (representing the location in the matrix) or character. |
row |
which column of x represent the row-index? default 1 |
col |
which column of x represent the column-index? default 2 |
value |
which column of x represent the value? default 3 |
keep.names |
only considered if the 'row' and 'col' columns of 'x' are of type character. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.