[R] query pertains to the application of funtion "stl"

Amogh Deshpande amogh at math.iisc.ernet.in
Mon Mar 13 10:10:47 CET 2006


This query pertains to the application of funtion "stl"
 I am new to R and working on a daily time series data which shows
periodicity every 12 months.I use the commands,

C<-read.csv("C:/Charlotte.csv") # import data


m<-cbind(data.frame(D,C[,4])) # append two columns


           D           C...4.
1 1961-01-01             45
2 1961-01-02             40
3 1961-01-03             36
4 1961-01-04             37
5 1961-01-05             41


Error in stl(m[, 2], "periodic") : series is not periodic or has less than
two periods.
I am unable to decompose the time series even thought the time series plot
shows that it is periodic every 12 months?

Can anyone please explain the reason and possible solution to decompose
the time series?
Thanking You in positive anticipation

"If there is a problem to be solved, seek statistical advice instead of
appointing a committee of experts. Statistics can throw more light than
the collective wisdom of the articulate few."

More information about the R-help mailing list