Case Study: Analyzing City Time Series Data in R
Lore Dirick
Manager of Data Science Curriculum at Flatiron School
lag() offsets observations in timelag(unemployment, k = 1, ...)

diff() measures change between periodsdiff(unemployment, lag = 1, ...)

Case Study: Analyzing City Time Series Data in R