View source: R/grouped_counts.R
| grouped_counts | R Documentation | 
Calculates weighted counts grouped by optional columns.
grouped_counts(data, by = NULL, w = NULL, value_name = "n", ...)
data | 
 A   | 
by | 
 An optional vector of column names in   | 
w | 
 Optional name of the column in   | 
value_name | 
 Name of the resulting column with counts.  | 
... | 
 Arguments passed to   | 
A data.frame with columns by and value_name.
grouped_counts(iris)
grouped_counts(iris, by = "Species")
grouped_counts(iris, w = "Petal.Length")
grouped_counts(iris, by = "Species", w = "Petal.Length")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.