Dear Splus users,
I am dealing with a daily timeseries. This is a dataframe formed by two
columns; in the first column there is the date (dd/mm/yyyy), in the second
there is the data. This time series is not a time series object.
For managing the date the command unpaste is simple but effective.
My problem is: I need to take in consideration only some intervals of my
timeseries, for example from 1750 to 1751;
the line
mytimeseries[unpaste(mytimeseries [[1]], sep = "/")[[3]] == c(1750:1751), ]
creates a dataframe with 365 rows (and two columns), taking in consideration
half days of the year 1750 and half days of the year 1751; I would have
expected a dataframe with 365 by two rows.
Whatever interval is taken (also from 1750 to 1780, for example) always only
365 rows are created. Why? Where is the mistake?
How can I solve this problem without loosing any single data?
Thank you for your help
Stefano
|