inla.CRSargs: Show expanded CRS arguments

Description Usage Arguments Value Author(s) See Also Examples

View source: R/spmesh.R

Description

Wrapper for sp::CRS and inla.CRS objects to extract the coordinate reference system argument string.

Usage

1
2
3
4
5

Arguments

x

An sp::CRS or inla.CRS object (for inla.CRSargs and inla.as.list.CRS), a character string (for inla.as.list.CRSargs), or a list (for inla.as.CRS.list and inla.as.CRSargs.list).

...

Additional arguments passed on to other methods.

Value

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.

Author(s)

Finn Lindgren <finn.lindgren@gmail.com>

See Also

CRSargs, inla.CRS

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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))
}

INBO-BMK/INLA documentation built on Dec. 4, 2019, 11:43 p.m.