Calculate total miles traveled from vectors of lat / lon

前端 未结 3 570
我在风中等你
我在风中等你 2020-12-02 02:10

I have a data frame with data about a driver and the route they followed. I\'m trying to figure out the total mileage traveled. I\'m using the geosphere packa

3条回答
  •  北荒
    北荒 (楼主)
    2020-12-02 02:35

    Be VERY careful with missing data, as distVincentyEllipsoid() returns 0 for distance between any two points with missing coordinates c(NA, NA), c(NA, NA).

提交回复
热议问题