Download the data from here. Load your data Time Series is a specific data structure in R. We have to convert data into time series data structures to apply time series algorithms. Chile Data library(dplyr)
data_chile = data %>% filter(Country == "Chile")
chile = data_chile[,c(2,5)]
head(chile) Convert into time-series data structure* 1,2,3,4,… as time index with no NA values. library(zoo)
z…