Forum Discussion
kalpanaV
9 years agoHelper IV
predictive analytics
Hi i want to achieve predictive analytics in power bi using r, below are the code. but i am not getting counts <-table(dataset$May2017,dataset$name) pred <-predict(dataset$May2017) pre...
kalpanaV
9 years agoHelper IV
decom <- stl(ts, s.window = "periodic") when i excute this, i am getting below error.please help me on this.
> library(ggplot2)
> data2<-data.frame(dataset)
> dataset <- aggregate(tickets ~ month, data = data2, FUN= sum)
> ts <- ts(data2$tickets, frequency=30)
> decom <- stl(ts, s.window = "periodic")
Error in stl(ts, s.window = "periodic") :
series is not periodic or has less than two periods
seena
8 years agoFrequent Visitor
Update the frequency to 3 because you are trying to analyse for only 3 months .