[R] diff() for panel data

Gabriel Paul Mihalache mihalache at gmail.com
Sun Sep 21 03:37:51 CEST 2008


> This doesn't help you immediately, but in the next couple of days I'll
> be releasing the plyr function which would allow you do something
> like:

Thank you! I'm looking forward to it!

Meanwhile, Mark Leeds sent me exactly the code I needed. (Using
split() to get df-s by country and then just using diff(log())).



More information about the R-help mailing list