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            11835
##  2 NNE           9198
##  3 NE           11319
##  4 ENE          10675
##  5 E            11286
##  6 ESE          11602
##  7 SE           14313
##  8 SSE          12366
##  9 S            13132
## 10 SSW          11228
## 11 SW           12442
## 12 WSW          13028
## 13 W            13760
## 14 WNW          12139
## 15 NW           11550
## 16 NNW          10596
## 17 <NA>          8187


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-2021 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0