[R] Relative positions using apply()

Jim Michael 10squared at telocity.com
Thu May 10 04:42:37 CEST 2001


I would like to use the power of R to perform vector operations on subsets
of vector elements, such as in calculation of moving averages. How does one
specify in the FUN argument the elements to operate on relative to the
current element? TIA.

Cheers,

Jim

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list