search for: mereal1

Displaying 1 result from an estimated 1 matches for "mereal1".

Did you mean: cereal
2011 Oct 26
1
help with means using tail()
Hi all,   I have 5 series  (5 ts objects: rp, igpm, ereal, jurosreal, crescpib), and want to create a vector with the means of the last values of each variable. What I did was this:   mrp1<-mean(tail(rp,9)) migpm1<-mean(tail(igpm,9)) mereal1<-mean(tail(ereal,9)) mjr1<-mean(tail(jurosreal,9)) mcp1<-mean(tail(crescpib,9)) means=rbind(mrp1,migpm1,mereal1,mjr1,mcp1)   They are monthly series, from 1995.1 to 2011.6. So what I did was generate the mean of each variable for [2010.10 to 2011.6] (9 months, as I wanted). But now I want...