March 2019
Beginner to intermediate
448 pages
13h 14m
English
Temperature prediction is particularly important for electricity generation, because electricity demand is highly dependent on it. We will work with a monthly time series containing average temperatures for Buenos Aires, Argentina from January 2001 to December 2018. The objective is to use the forecast package to build a model automatically that can be used for prediction.
library(forecast) average_temp = read.csv("./temperature.csv") raverage_temp$indice_tiempo = as.Date(average_temp$indice_tiempo,"%Y-%m-%d") average_temp = ts(average_temp$temperatura_promedio,start=c(2001,1),frequency = 12)
Read now
Unlock full access