calculating the geographic distance between coordinates

st_distance() from the sf package will do this for you. If you're looking for more specific help, please post a sample of your data.

1 Like