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.
changing time span
4 messages · R. Michael Weylandt, Gabor Grothendieck, phillen
? 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.
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?
?window.zoo 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
muchas gracias! Exactly what I was looking for, very helpful. Best regards, Philipp -- View this message in context: http://r.789695.n4.nabble.com/changing-time-span-tp4413672p4414007.html Sent from the R help mailing list archive at Nabble.com.