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 .