[R] Operating on windows of data

Gabor Grothendieck ggrothendieck at myway.com
Sat Mar 20 21:37:12 CET 2004


See

   ?embed

and possibly

   ?filter


Date:   Sat, 20 Mar 2004 15:16:38 -0500 
From:   Sean Davis <sdavis2 at mail.nih.gov>
To:   R-Help <r-help at stat.math.ethz.ch> 
Subject:   [R] Operating on windows of data 

 
I have a data set that is comprised of, for simplicity, a vector of numbers that I want to march across in overlapping windows of say 10 values each, computing a couple of values for each window. Is there a vectorized way to do this, or do I truly need to resort to looping--I think so? Any other clever thoughts?

Thanks,
Sean

     [[alternative HTML version deleted]]




More information about the R-help mailing list