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? Mike Byerly Fisheries Biologist Commercial Fisheries Division Alaska Dept. of Fish and Game 3298 Douglas Place Homer, AK 99603 mike.byerly@alaska.gov <mailto:mike.byerly@alaska.gov> PH: 907-235-1745 FX: 907-235-2448 [[alternative HTML version deleted]]
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