9.2 Counting Groups

Groups can be counted using dplyr::count().

ds %>% count(wind_dir_3pm)
## # A tibble: 17 × 2
##    wind_dir_3pm     n
##    <ord>        <int>
##  1 N            16216
##  2 NNE          12754
##  3 NE           15672
##  4 ENE          14845
##  5 E            15694
##  6 ESE          16360
##  7 SE           19749
##  8 SSE          17123
##  9 S            18466
## 10 SSW          16147
## 11 SW           16969
## 12 WSW          17570
## 13 W            18604
## 14 WNW          16699
## 15 NW           15663
## 16 NNW          14473
## 17 <NA>         12406


Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0