[R] changing time span

R. Michael Weylandt michael.weylandt at gmail.com
Thu Feb 23 14:24:36 CET 2012


? window

Michael

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?
>
> kind regards, phillen
>
> --
> View this message in context: http://r.789695.n4.nabble.com/changing-time-span-tp4413672p4413672.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org 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.



More information about the R-help mailing list