I am working in R. I have a df with lat and long read in as:
lat long
5542.780 1204.000
5540.463 1005.425
5639.760 958.420
etc.
Where latitude is 55 degrees and 42.780 is decimal minutes. I want to transform this into decimal degrees with output:
lat long
55.713 12.06667
55.67438 10.09042
56.66267 9.973667
etc.
I know that this can be calculated by e.g. 55 + 42.780/60 = 55.713. But I don´t know how to do it automatically for the whole df within R, which has about 79 000 observations :) it must be a way, I have searched but cannot find the solution.