Could anyone tell me whether there is an R function for removing autocorrelations from a series of observations before performing a linear or nonlinear regression analysis on them? Many thanks, Andrew Wilson