rSW2st_crs: Determines the coordinate reference system

rSW2st_crsR Documentation

Determines the coordinate reference system

Description

Determines the coordinate reference system

Usage

crs_units(crs)

Arguments

crs

An object which is a crs or from which one can be derived. x can be numeric as a EPSG number; a character string as a wkt; a character string as a proj4 (not recommended because outdated); or of a class including raster::Raster, sp::Spatial, sp::CRS, or a sf or sfc class.

Value

The function crs_units returns the crs units as a character string or NA.

See Also

st_crs

Examples

crs_units(4326)
crs_units("EPSG:4326")
crs_units(terra::crs("EPSG:4326"))
if (requireNamespace("sp")) {
  crs_units(sp::CRS("+init=EPSG:4326"))
}


DrylandEcology/rSW2st documentation built on Jan. 10, 2024, 6:22 p.m.