Skip navigation

Count members of subgroups within groups with n()

Count members of subgroups within groups with n(): Learning the R Tidyverse
Count members of subgroups within groups with n(): Learning the R Tidyverse

To count the number of times subgroup A appears in group X, for example, there is a dedicated function: n(). Combining the verb mutate with n() allows these counts to easily be added to the data frame.

Resume Transcript Auto-Scroll
Skill Level Intermediate
3h 44m
Duration
61,374
Views
Show More Show Less
Skills covered in this course
Big Data IT R

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start My Free Month

Start your free month on LinkedIn Learning, which now features 100% of Lynda.com courses. Develop in-demand skills with access to thousands of expert-led courses on business, tech and creative topics.

Start My Free Month

You are now leaving Lynda.com and will be automatically redirected to LinkedIn Learning to start your free trial.