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            12930
##  2 NNE          10076
##  3 NE           12366
##  4 ENE          11729
##  5 E            12350
##  6 ESE          12763
##  7 SE           15675
##  8 SSE          13525
##  9 S            14379
## 10 SSW          12352
## 11 SW           13461
## 12 WSW          14136
## 13 W            14873
## 14 WNW          13192
## 15 NW           12539
## 16 NNW          11471
## 17 <NA>          9232


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