[R] changing time span

Gabor Grothendieck ggrothendieck at gmail.com
Thu Feb 23 14:43:19 CET 2012

On Thu, Feb 23, 2012 at 7:09 AM, phillen <phlentner at gmail.com> wrote:
> hi there!
> i am desperately in need for help.
> i have read in data:
> qthm=read.csv("qthm.csv",sep=";",header=TRUE)
>  then created time series ie
> m2=ts(log(qthm$m2), start=c(1959, 1), frequency=4)
> transformed these time series in zoo variables
> qthmz=merge.zoo(diff(mbase),diff(m2),diff(cpi),diff(rgdp))
> Now I want to analyse these date, but for different periods. How to I create
> new time series or zoo variables with a shorter time span ie from 1959.00 to
> 1979.75 only?
> I have already read through several possibilities but nothing seems to work
> well for my case, what do you recommend?


Also read the part about posting reproducible code in the last two
lines of every message to r-help.

Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com

More information about the R-help mailing list