timeSeries.R