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            13369
##  2 NNE          10551
##  3 NE           12981
##  4 ENE          12356
##  5 E            12999
##  6 ESE          13414
##  7 SE           16406
##  8 SSE          14179
##  9 S            15062
## 10 SSW          12973
## 11 SW           14086
## 12 WSW          14718
## 13 W            15451
## 14 WNW          13744
## 15 NW           13005
## 16 NNW          11860
## 17 <NA>          9714


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