stl() decomposition won't accept univariate ts object?

前端 未结 6 1445
悲&欢浪女
悲&欢浪女 2020-12-29 17:08

I\'m have issues with stl() time series decomposition function in R telling me my ts object is not univariate when it actually is?

tsData <- ts(data = dum         


        
6条回答
  •  一向
    一向 (楼主)
    2020-12-29 17:14

    I had the same problem and this is how I fixed it:

    stl(x[,1], s.window = "periodic"
    

提交回复
热议问题