Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

fm_CRSargs

Show expanded CRS arguments


Description

Wrappers for sp::CRS and inla.CRS objects to handle the coordinate reference system argument string. These methods should no longer be used with PROJ6/rgdal3; see fm_crs_get_wkt() for a new approach.

Usage

fm_CRS_as_list(x, ...)

fm_list_as_CRS(x, ...)

fm_CRSargs(x, ...)

fm_list_as_CRSargs(x, ...)

fm_CRSargs_as_list(x, ...)

Arguments

x

An sp::CRS or inla.CRS object (for fm_CRSargs and fm_CRS_as_list), a character string (for fm_CRSargs_as_list), or a list (for fm_list_as_CRS and fm_list_as_CRSargs).

...

Additional arguments passed on to other methods.

Value

For fm_CRSargs and fm_list_as_CRSargs, a character string with PROJ.4 arguments.

For fm_CRS_as_list and fm_CRSargs_as_list, a list of name/value pairs.

For fm_list_as_CRS, a CRS or inla.CRS object.

For fm_list_as_CRSargs(), a CRS proj4 string for name=value pair list

For fm_CRSargs_as_list(), a list of name=value pairs from CRS proj4 string

Author(s)

See Also

Examples

if (require(rgdal) && !fm_has_PROJ6()) {
  crs0 <- fm_CRS("longlat")
  p4s <- fm_CRSargs(crs0)
  lst <- fm_CRSargs_as_list(p4s)
  crs1 <- fm_list_as_CRS(lst)
  lst$a <- 2
  crs2 <- fm_CRS(p4s, args = lst)
  print(fm_CRSargs(crs0))
  print(fm_CRSargs(crs1))
  print(fm_CRSargs(crs2))
}

inlabru

Bayesian Latent Gaussian Modelling using INLA and Extensions

v2.3.1
GPL (>= 2)
Authors
Finn Lindgren [aut, cre, cph] (<https://orcid.org/0000-0002-5833-2011>, Finn Lindgren continued development of the main code), Fabian E. Bachl [aut, cph] (Fabian Bachl wrote the main code), David L. Borchers [ctb, dtc, cph] (David Borchers wrote code for Gorilla data import and sampling, multiplot tool), Daniel Simpson [ctb, cph] (Daniel Simpson wrote the basic LGCP sampling method), Lindesay Scott-Howard [ctb, dtc, cph] (Lindesay Scott-Howard provided MRSea data import code), Seaton Andy [ctb] (Andy Seaton provided testing and bugfixes)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.