gadm.longTo360: Converts longitudes from -180° - 0° - 180° to 0° - 360°

Description Usage Arguments Value Note Author(s) Examples

View source: R/00_S3_Definitions.R

Description

Converts longitudes of a GADM shapefile to a range of 0° - 360° using the modulo R function.

Usage

1

Arguments

x

Object gadm_sf or gadm_sp.

Value

Object gadm_sp

Note

For gadm_sp maps, the transformation is done only when rendering a graph. The original data are not modified. For gadm_sf maps, the internal geometry is modified.

Author(s)

Jean Pierre Decorps <jp.decorps@epiconcept.fr>

Examples

1
2
3
4
5
# library(GADMTools)
# MAP <- gadm_sf.loadCountries("FJI", level = 0)
# plotmap(MAP)
# MAP <- gadm_longTo360(MAP)
# plotmap(MAP)

GADMTools documentation built on Aug. 5, 2021, 1:06 a.m.