df2mat | R Documentation |
Convert a 3-column data.frame (dim1, dim2, value) to a 2-D matrix
df |
A |
replace_na |
if not |
There is virtually no input validation of df
. You must pass a data.frame that has dim1, dim2, and value as
columns. Otherwise, it will not work as expected.
This is a much faster version of the acast function from reshape2
that works only on 2-D matrix conversions.
The matrix form of the keyed data.frame object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.