[R] time series by calendar week

collonil manitz.juliane at web.de
Tue Jul 8 16:25:35 CEST 2008


hello, 

i cant find a solution on this (might be) easy problem:

i have a time serie by carlandar weeks, so for every carlendar week i have a
value. now i would like to use the functions for time series, so i change
structur to a time serie with

cam <- ts(number,start=c(2001,1),deltat=7/365)
or 
cam <- ts(number,start=c(2001,1),frequency=52)

the problem on it is, that 2004 had 53 calendar weeks, which is not
recognized there.
it follows with using a saisonal structure the weeks are shifting. f.e.
first week in 2005 is conected with the second week in 2004.
with the first function leap years are not recognized.

is there another function which is recognizing irregularities in the
calendar?

thanks a lot, collonil

-- 
View this message in context: http://www.nabble.com/time-series-by-calendar-week-tp18340479p18340479.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list