crs_input: Extract 'input' value

Description Usage Arguments Value Warning References See Also Examples

View source: R/get_crs.R

Description

Obtain the 'input' string from an object, if it has one. Supported inputs include sf (>= 0.8-1 - probably).

Usage

1

Arguments

x

object with 'input' value

...

ignored

Value

character (or NA)

Warning

Note that the 'input' value could be almost anything, there is a huge variety of inputs that can work such as 4326, projstrings, WKT2 strings, EPSG declarations 'EPSG:4326', or common strings like 'WGS84' or 'NAD27'.

Strings like '+init=epsg:4326' have been deprecated but still can work, so beware.

References

sf

See Also

crs_wkt2() crs_proj() crs_epsg()

Examples

1
2
3
crs_input(sfx) ## doesn't have one

crs_input(sfx_new)  ## a proj4string

crsmeta documentation built on April 14, 2020, 7:13 p.m.