Fetching datapoints from a Time Series

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Fetching datapoints from a Time Series

Arun.stat
Hi all,

I have a time series like that :

Date                        Value

01/03/05 -0.008471364
01/04/05 -0.008153802
01/05/05 -0.000780031
01/06/05 -0.000130064
01/07/05 -0.000650576
01/08/05 -0.000130166
01/10/05 -0.004174282
01/11/05 0.01027384
01/12/05 -0.006099558
01/13/05 -0.009811054
01/14/05 0.000657073


I import this dataset as a zoo object. Now I want to fetch the dataset
between two particular dates. For example if I want to get data point
between 01/02/05 and 01/09/05 I should get :

01/03/05 -0.008471364
01/04/05 -0.008153802
01/05/05 -0.000780031
01/06/05 -0.000130064
01/07/05 -0.000650576
01/08/05 -0.000130166


Can anyone please tell me how to do that? Is there any function to do that?

Regards,

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.