Re: [R] rollapply on zoo object

2007-11-30 Thread Gabor Grothendieck
1. rollapply is for creating zoo objects from zoo objects -- not for creating lists from zoo objects. 2. The subscripting is wrong. 3. Its possible that you need a different representation for out but that depends on what you want to do with it. At any rate try this and note that there is no zoo

[R] rollapply on zoo object

2007-11-30 Thread κΉ€μƒν™˜
Dear R users. I have zoo object "size_june" containing market-capital values: > dim(size_june) # market-cap data of 625 firms for 20 years [1] 20 625 > class(size_june) [1] "zoo" > size_june # colnames = "size.firmcode" size.34020 size.4710 size.11050 size.10660 size.9540 size.8060