Ellis Hughes and I continue working on data cleaning and data engineering processes in {tidyverse}. This week, we go over various ways of creating window functions using the {zoo} package. These types of functions are very useful when dealing with signal processing data such as GPS, accelerators, or force plates. In our example, we use the Lahman baseball database to get the home runs per season for Albert Pujols (who recently hit his 700th career HR!) to show windows of rolling average and standard deviation.
If you have any data cleaning or engineering problems that are giving your trouble, feel free to reach out to us and maybe we can work on the problem in one of our upcoming episodes!
To watch our screen cast, CLICK HERE.
To access our code, CLICK HERE.