GADMTools (version 3.8-1)

gadm_longTo360: Converts longitudes from -180<U+00B0> - 0<U+00B0> - 180<U+00B0> to 0<U+00B0> - 360<U+00B0>

Description

Converts longitudes of a GADM shapefile to a range of 0<U+00B0> - 360<U+00B0> using the modulo R function.

Usage

gadm_longTo360(x)

Arguments

x

Object gadm_sf or gadm_sp.

Value

Object gadm_sp

Examples

Run this code
# NOT RUN {
# library(GADMTools)
# MAP <- gadm_sf.loadCountries("FJI", level = 0)
# plotmap(MAP)
# MAP <- gadm_longTo360(MAP)
# plotmap(MAP)
# }

Run the code above in your browser using DataLab