nPerGroup | R Documentation |
Grouping columns containing NAs are not considered.
nPerGroup(df, group, col)
df |
a data.frame or tibble |
group |
character(n) Character vector of name(s) of grouping columns |
col |
character(n) Name(s) of column(s) in which to count distinct values |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.