Re: [R] aggredating date data

2011-01-12 Thread Gabor Grothendieck
On Wed, Jan 12, 2011 at 7:35 PM, Gene Leynes wrote: > I like the zoo package, and there are several helpful examples. > library(zoo) > > You can easily convert your data into a zoo object using > I was actually just doing this using this function: > LoadReturnData=function(x){ >    ret = read.csv(

Re: [R] aggredating date data

2011-01-12 Thread Gene Leynes
I like the zoo package, and there are several helpful examples. library(zoo) You can easily convert your data into a zoo object using I was actually just doing this using this function: LoadReturnData=function(x){ ret = read.csv(x) ret = zoo(ret[ , -1], as.Date(ret[ , 1])) colnames(ret

Re: [R] aggredating date data

2011-01-12 Thread Jannis
am Mi, 12.1.2011: > Von: analys...@hotmail.com > Betreff: [R] aggredating date data > An: r-help@r-project.org > Datum: Mittwoch, 12. Januar, 2011 20:20 Uhr > I tried a date by date forecast of a > time series and it seems to be > too wild.  How can I aggregate the date into

[R] aggredating date data

2011-01-12 Thread analys...@hotmail.com
I tried a date by date forecast of a time series and it seems to be too wild. How can I aggregate the date into weeks or months as required? Thanks. The input looks like ID datadate("-MM-DD") value_for_day -- ---- -- --