[datatable-help] Have monthly data, need log of the difference. How?

2018-01-30 Thread ellie
So I have monthly data in an excel file, but what I need to make my calculations in the natural log of the difference. Is there a built in function in R that will let me transform my data this way, or do I need to do it in excel before importing the data to R? Thanks! -- Sent from:

Re: [datatable-help] Have monthly data, need log of the difference. How?

2018-01-31 Thread ellie
Thank you for replying! I'll try to attach an image of some of my data, so you will see the structure. I want to run some regressions with the natural log of the difference, so I guess the first step would be to extract the change between each date? I'm almost completely new to R, and would