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
31,851
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 Your Free Trial Now

Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now