Skip to contents

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

Usage

fm_as_fm(x, ...)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

# S3 method for class '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