How to calculate a rolling average with lag: we get a moving average to smooth lamb prices (CC012)
Автор: Riffomonas Project
Загружено: 2020-06-25
Просмотров: 1736
In this screencast tutorial, Pat Schloss shows how you can use the lag function from the dplyr R package to calculate a rolling or moving average of lamb prices from his local livestock auction. Motivated by a desire to smooth noisy data, he compares the rolling average to the output of geom_smooth to plot the seasonal trends in different weight classes of lamb. He demonstrates these concepts by live coding in R with RStudio. He then turns viewers loose to work through several activities to answer related questions.
The site that contains the exercises and solutions can be found at http://www.riffomonas.org/code_club/2....
Big Swing Band by Audionautix is licensed under a Creative Commons Attribution license (https://creativecommons.org/licenses/...)
Artist: http://audionautix.com/
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: