Re: [R] losing row.names in matrix operations

2008-08-03 Thread Gabor Grothendieck
Constructing a zoo object is well covered in ?zoo and in the three vignettes: vignette("zoo") vignette("zoo-quickref") vignette("zoo-faq") On Sat, Aug 2, 2008 at 10:27 AM, rcoder <[EMAIL PROTECTED]> wrote: > > Thanks for your reply Gabor. > > As I already have a dates column in my dataframe (in

Re: [R] losing row.names in matrix operations

2008-08-03 Thread rcoder
Thanks for your reply Gabor. As I already have a dates column in my dataframe (in column row.names), is it possible to preserve this whilst still making a data set suitable for rollapply()? Thanks, rcoder Gabor Grothendieck wrote: > > If its regular you can convert it to ts or zoo. > If its

Re: [R] losing row.names in matrix operations

2008-08-02 Thread Gabor Grothendieck
If its regular you can convert it to ts or zoo. If its irregular convert it to zoo. There is no reason to expect rollapply to work with objects of other classes. Read ?ts and ?zoo. In ts note the start and frequency arguments. On Sat, Aug 2, 2008 at 7:50 AM, rcoder <[EMAIL PROTECTED]> wrote: >