Pātuhitia tēnei: Time series analysis: with applications in R