View source: R/dth_as_matrix.R
dth_as_matrix | R Documentation |
Convert a data.table to a matrix easily
dth_as_matrix(DT, rownames.col = NULL, set.rownames = TRUE)
DT |
data.table |
rownames.col |
character of which column to use for the matrix rownames. (Default=NULL) |
set.rownames |
logical whether to set the rownames from a column within the data.table. (Default=TRUE) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.