[R] Help for detrending

Gabor Grothendieck ggrothendieck at myway.com
Thu Jan 6 16:50:41 CET 2005


NDIKUMAGENGE Alice <andikumagenge <at> businessdecision.com> writes:

> I am a new user of R and I am a little bit "lost".
> I would like to know how tu use R for detrending, which kind
> of algorithms  I have to use.

The following will remove a trend from vector y:

	resid(lm(y ~ seq(along = y)))

Also check out ?stl and ?filter .




More information about the R-help mailing list