[R] extracting data from zoo series

Alfonso Sammassimo cincinattikid at bigpond.com
Fri Mar 2 02:54:23 CET 2007


Dear List,

Sorry if I'm overlooking something simple here but I have gotten a bit 
tangled.

I am trying to print the next five values(with their dates), which occur 
after a certain condition is met.

I have a series of data in zoo format, call it "A". From this series I have 
created a subset (also in zoo format) based on a certain condition, call 
this series "B".

I want to use the dates from "B"  as an index, so as each of these dates 
occur in "A", the succeeding five rows  from "A" after this date are printed 
out.

Any help would be most appreciated.

Regards,
Alfonso Sammassimo
Melbourne, Victoria



More information about the R-help mailing list