I am trying to decompose a time series which is the monthly multi-year average of hourly ozone data. There are 288 data points (24 hours * 12 months). STL needs ts object to extract the components of time series. And ts has the parameter "frequency". As far as I know, it is the number of observations in one period. For example, it is 12 for monthly averaged temperature data. What is the frequency for my case since If I use 288
data_ts=stl(ts(data,frequency = 288),s.window = "per"))
As expected, it throws the error "series is not periodic or has less than two periods". BTW, I am aware of other methods to extract seasonality, but I also need to check the results with STL.
Best