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
Do you know what could have happened ?
Thank you
