dMcast | R Documentation |
Reimplementation of function that originally part of the R package
Matrix.utils
before the package was
deprecated. The only difference is that this version of dMcast
does
not include an aggregation feature at the end.
dMcast(
data,
formula,
value.var = NULL,
as.factors = FALSE,
na.action = stats::na.pass,
factor.nas = TRUE,
drop.unused.levels = TRUE
)
data |
A data.frame. |
formula |
Casting formula, see details for specifics. |
value.var |
Name of column that stores values to be aggregated numerics. |
as.factors |
If |
factor.nas |
If |
drop.unused.levels |
Should factors have unused levels dropped?
Defaults to |
matrix
groupings <- data.frame(A = as.factor(sample(1e4,1e6,TRUE)))
formula <- stats::as.formula("~0+.")
dm <- orthogene:::dMcast(data = groupings, formula = formula)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.