Skip to contents

Convert longitudes from 0 to 360 degrees to -180 to 180 degrees

Usage

convert_from_lon_360(
  sf_data,
  crs = 4326,
  add_data = TRUE,
  longitude_column = "LONG"
)

Arguments

sf_data

An sf object; does not accept SpatialPolygon* objects

crs

CRS as a proj4string or EPSG code

add_data

Select if data associated with the object are carried forward by the transformed version, defaults to FALSE

longitude_column

Name of longitude, defaults to LONG

Value

polygons with converted coordinates