Help with R

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Help with R

storm48
I'm new to R and I'm still struggling with basic functions

Simply trying to generate a formula from a matrix, which I can easily achieve in excel (forgive me)

Example of my matrix
Year     Population
1888      239
1889      333
1890      690
....          ...

Looking to calculate population growth rate where pgr = log(Population of next year/population of current year) and form a separate matrix with this new variable.

Help?
Thanks