Skip to contents

Convert objects to fm_segm

Usage

fm_as_mesh_1d(x, ...)

fm_as_mesh_1d_list(x, ...)

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

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

Arguments

x

Object to be converted

...

Arguments passed on to submethods

Value

An fm_mesh_1d or fm_mesh_1d_list object

Functions

  • fm_as_mesh_1d(): Convert an object to fm_mesh_1d.

  • fm_as_mesh_1d_list(): Convert each element of a list

See also

Examples

fm_as_mesh_1d_list(list(fm_mesh_1d(1:4)))
#> [[1]]
#> fm_mesh_1d object:
#>   Manifold:	R1
#>   #{knots}:	4
#>   Interval:	(1, 4)
#>   Boundary:	(neumann, neumann)
#>   B-spline degree:	1
#>   Basis d.o.f.:	4
#> 
#> attr(,"class")
#> [1] "fm_mesh_1d_list" "fm_list"         "list"