| inla.CRSargs {INLA} | R Documentation |
Wrapper for sp::CRS and inla.CRS objects to extract the
coordinate reference system argument string.
Should no longer be used with PROJ6/rgdal3;
see inla.crs_get_wkt()
inla.CRSargs(x, ...) inla.as.CRSargs.list(x, ...) inla.as.list.CRSargs(x, ...) inla.as.list.CRS(x, ...) inla.as.CRS.list(x, ...)
x |
An |
... |
Additional arguments passed on to other methods. |
inla.as.CRSargs.list: CRS proj4 string for name=value pair list
inla.as.list.CRSargs: List of name=value pairs from CRS proj4 string
For inla.CRSargs and inla.as.CRSargs.list, a character
string with PROJ.4 arguments.
For inla.as.list.CRS and inla.as.list.CRSargs, a list of
name/value pairs.
For inla.as.CRS.list, a CRS or inla.CRS object.
Finn Lindgren finn.lindgren@gmail.com
if (require(rgdal)) {
crs0 <- inla.CRS("longlat")
p4s <- inla.CRSargs(crs0)
lst <- inla.as.list.CRSargs(p4s)
crs1 <- inla.as.CRS.list(lst)
lst$a <- 2
crs2 <- inla.CRS(p4s, args = lst)
print(inla.CRSargs(crs0))
print(inla.CRSargs(crs1))
print(inla.CRSargs(crs2))
}