Description Usage Arguments Value See Also
View source: R/util_aggregation.R
Aggregating to mode
1 2 | aggregate_mode(df, aggregate.by, when.tie = NA, ignore.missing = T,
write.to.file)
|
df |
the data frame to aggregate |
aggregate.by |
the name of the column to aggregate by |
when.tie |
what value to return when there is a tie (defaults to NA) |
ignore.missing |
when TRUE, first removes NA, empty strings, -Inf, Inf (default TRUE) |
data frame of Modes for all variables in df, with one row per unique value in the column named in aggregate.by
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.