Using the drop argument with factors in count and group_by to include missing data (CC240)
You want to know about the drop argument for count
and group_by
, if you have categories that you want to be sure to include in your analysis, but that might be missing. Pat will demonstrate how to use .drop
with a toy dataset and snow data for the past 130 years that he obtained from local weather data downloaded from NOAA. He’ll also show how to convert a factor into a continuous variable for plotting on the x-axis. All this will be done in RStudio with a lot of help from the tidyverse
Code
You can browse the state of the repository at the