Answers for "Count by One Variable"

0

Count by One Variable

library(dplyr)

#count total observations by variable 'team'
df %>% count(team)

# A tibble: 3 x 2
  team      n
   
1 A         3
2 B         5
3 C         4
Posted by: Guest on April-13-2022

Code answers related to "TypeScript"

Browse Popular Code Answers by Language