Description Usage Arguments Value See Also
A wrap-around the dcast
function that returns a matrix
instead of a data.table
1 | castToMatrix(data, formula, value.var, fun.aggregate, fill = NA, ...)
|
data |
A |
formula |
A formula of the form LHS ~ RHS to cast, see Details. |
value.var |
Name of the column whose values will be filled to cast. Function Cast multiple |
fun.aggregate |
Should the data be aggregated before casting? If the formula doesn't identify a single observation for each cell, then aggregation defaults to To use multiple aggregation functions, pass a |
fill |
Value with which to fill missing cells. If |
... |
Any other arguments that may be passed to the aggregating function. |
A matrix with columns and rows corresponding to the formula.
dcast
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.