I have been tasked with calculating the distance of two locations for several individuals. As seen in the image, I have a subset of 5 "IDs" that contain a starting "lat" and "long" and a final "lat" and "long". Row 1 & 2 belong to one individual, 3 & 4 the next, so on and so forth.
I have seen people say that using the geosphere package works, however I have a large dataset and have not found a way to apply that package to my data. I began calculating some of them by typing them out, however it would be great to learn of a way to extract specific rows and columns automatically. Perhaps I am missing a detail of this method, any suggestions/help would be much appreciated!