Description Usage Arguments Value Examples
Count aggregates (extended version of dplyr::count).
1 |
data |
A data frame. |
... |
Variables to group by. |
total_value |
The total value label. |
A tbl, grouped the same way as data.
1 2 3 4 5 6 | data <- dplyr::tibble(
var1 = as.character(c(1, 1, 2, 2)),
var2 = as.character(c(1, 2, 1, 2)),
var3 = as.character(c(1, 2, 2, 2))
)
divr::count_agg(data, var1, var2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.