> 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())).