[R] running slope

David Winsemius dwinsemius at comcast.net
Sat Jul 30 04:21:40 CEST 2011


On Jul 29, 2011, at 8:22 PM, Byerly, Mike M (DFG) wrote:

> Is there a function in R that will calculate a running linear slope
> similar to the way the function filter() will calculate a moving
> average?
>

If you are happy with the return from filter, then why not take the  
first differences as the "running slope"?

-- 

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list