Tidy time series analysis in R