R routines for the analysis of nonlinear time series