Miguel A. Arranz wrote: > You probably want to have a look at help(embed). It might be all you need. > embed wraps around (no NAs at begin and end of the dataset), this makes no sense in hydrology. Gruss Georg -- Georg Hoermann, Dep. of Hydrology, Ecology, Kiel University, Germany Tel. 0431-880-1207, Home: 0451/477032, 0172/4315715, Penguin #189476