'How to fix the dataTest error in Timeseries in R?
#Training and Test Split
split <- ceiling(0.7 * length(data)) dataTrain <- ts(data[1:split], frequency = 15, start = c(2021,5)) dataTest <- ts(data[c((split+1) : nrow(data))], frequency = 15, start = c(2022,5)) actual <- unclass(dataTrain) actualFull <- unclass(data)
dataTest <- ts(data[c((split+1) : nrow(data))], frequency = 15, start = c(2022,5))
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|