[R] Odp: row data manipulation in data frame
Petr PIKAL
petr.pikal at precheza.cz
Fri Jul 10 11:34:57 CEST 2009
Hi
maybe ?cumsum, or ?diff or ?aggregate
Regards
Petr
r-help-bounces at r-project.org napsal dne 10.07.2009 10:56:34:
> R users,
> I am a beginner in R. I have a time series data on various macro
variables
> like GDP, unemployment rate, consumer spending, imports, exports etc. I
am
> interested in calculating year over year growth rate for each of those
> variables. Is there any simple function in R for carrying out such
repeated
> operations.
>
> I would like to carry out growth rate between two consecutive yearly row
> data and also between current quarter and previous years quarterly
value.
>
> any help would be highly appreciated,
>
> thanks in advance.
>
> srinivas
> statistical analyst
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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