powered by
Return the value of a parameter (the name or the unit) present in the WKT of the given CRS.
projpar(x, par, abort = FALSE)projname(x, abort = FALSE)
projname(x, abort = FALSE)
The CRS to be named (any st_crs2 input is accepted).
Character corresponding to the parameter name (it can be one among "name" and "unit" - case insensitive).
logical: if TRUE, the function aborts in case an invalid CRS is passed; if FALSE (default), the function returns NA, and a warning is shown.
A character with the content of the parameter, and an attribute crs with the input projection checked using sf::st_crs().
crs
sf::st_crs()
# NOT RUN { projpar(4326, "name") projpar(4326, "unit") # } # NOT RUN { projname(4326) # }
Run the code above in your browser using DataLab