Some examples of time series analysis in R