Hello!
I'm trying to calculate the distance between a start point and end point. I tried with geosphere package with distHaversine() function, but I don't know how to combinane longitude and latidudes that are in different columns of my dataframe. May you help me? I'm new in R programming.
Thank you for your help! Could you please tell me how to change the code if I don't want to list all the values within the vectors? Beacause in reality, my dataframe has millions of rows (thus millions of coordinates).
Thank you!