[R] Dropping time series observations

Mikael Olai Milhøj mikaelmilhoj at gmail.com
Sat Jan 31 20:16:36 CET 2015


Is there an easy way to drop, for instance, the first 4 observation of a
time series object in R? I have tried to google the answer without any

To be more clear:
Let us say that I have a time seres object x which data from 2000Q1 to
2014Q4 but I only want the data from 2001Q1 to 2014Q4.How do I remove the
first four elements?

By using x[5:?] R no longer recognize it as a ts.object.

Thank you

Best regards

	[[alternative HTML version deleted]]

More information about the R-help mailing list