add.count | R Documentation |
Typically used after group_by(). This function gets the counts for each group and adds it back to the ungrouped dataset.
add.count(df, rename = "N")
df |
data.frame object |
rename |
Specify to rename column for counts |
data.frame object
library(tidyverse) mtcars%>% group_by(am) %>% add.count()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.