Using the ZOO R package na.* functions to impute missing values/NAs in a data frame. Starts with a short primer on why, when and how to impute.
You can get the code at my github repository: https://github.com/hthomas229/PurpleC...
Additional Resources:
https://www.bookdown.org/rwnahhas/RMP...
https://cran.r-project.org/web/packag... (see the vignettes)