R/coordinates.R
coordinate_mod.Rd
Corrects the longitudes or latitudes to value between -180° and 180° or -90° and 90°
longitude_modulo(x) latitude_modulo(x)
Longitude(s) or latitude(s) in degrees
numeric
longitude_modulo(-361 + 5 * 360) # -1 #> [1] -1 latitude_modulo(-91 + 5 * 180) # 89 #> [1] 89