dcast.count2 | R Documentation |
Counting up occurrences in a table while taking factor levels into account Also allows for weighting the counts using flexible argument parsing Can either provide a weight as a name of a column, as values themselves, or don't provide at all, and the function looks for a column named "wt" for its values
dcast.count2(
tbl,
lh,
rh = NULL,
countcol = "count",
wt = 1,
fun.aggregate = "sum",
value.var = "dummy",
...
)
A data frame or data.table
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.