I am new to R following the PDF analysis of time analysis using R, Walter Zucchini. I have data coming from the sensor, in particular, I can receive data every minute or every 5 seconds. Then I want to use the ts()
command to create a time series of these values. Thus, the syntax should be data1mints <- ts(data1min ,freq = 525600)
, where 525600 is the minutes in the regular year.
after that I try to build this plot(stl(log(data1min), s.window = "periodic"))
command plot(stl(log(data1min), s.window = "periodic"))
, but R tells me that
is not periodic or has less than two periods
To be more precise, I have data from March 20 to March 28, so I did not have complete year data, but I think that there is enough time for this to analyze what happens every minute.
What am I wrong?
source share