Error in distGeo regarding longitude data

81 Views Asked by At

I have an error using distGeo with this code

zone <- zone %>% rowwise() %>% 
mutate(distance = distGeo(c(long,lat), c(longitude,latitude))/1000)

The error is the following : Caused by error in .pointsToMatrix(): ! longitude < -360

I have indeed a longitude < 0 (but not <-360) but this is normal

Here an extract of my data

enter image description here

Do you know what could have happened ?

Thank you

0

There are 0 best solutions below