I am trying to use the distVincentyEllipsoid function in the geosphere package in R to calculate the distance between different points in my data frame, following the exampl
I would also add that you should check for NAs. I geocoded a set of zip codes to coordinates and since some of the zips were out of date (at least that's what I think happened), they failed to generate coordinates.