Skip to contents

Used for conversion from general objects (usually inla.mesh and other INLA specific classes) to fmesher classes.

Usage

fm_as_fm(x, ...)

## S3 method for class 'NULL'
fm_as_fm(x, ...)

# S3 method for fm_mesh_1d
fm_as_fm(x, ...)

# S3 method for fm_mesh_2d
fm_as_fm(x, ...)

# S3 method for fm_segm
fm_as_fm(x, ...)

# S3 method for fm_lattice_2d
fm_as_fm(x, ...)

# S3 method for fm_bbox
fm_as_fm(x, ...)

# S3 method for crs
fm_as_fm(x, ...)

# S3 method for CRS
fm_as_fm(x, ...)

# S3 method for fm_crs
fm_as_fm(x, ...)

# S3 method for inla.CRS
fm_as_fm(x, ...)

# S3 method for inla.mesh.1d
fm_as_fm(x, ...)

# S3 method for inla.mesh
fm_as_fm(x, ...)

# S3 method for inla.mesh.segment
fm_as_fm(x, ...)

# S3 method for inla.mesh.lattice
fm_as_fm(x, ...)

Arguments

x

Object to be converted

...

Arguments forwarded to submethods

Value

An object of some fm_* class

See also

Examples

fm_as_fm(NULL)
#> NULL