fm_as_sfc: Conversion methods from mesh related objects to sfc

View source: R/sf_mesh.R

fm_as_sfcR Documentation

Conversion methods from mesh related objects to sfc

Description

Conversion methods from mesh related objects to sfc

Usage

fm_as_sfc(x, ...)

## S3 method for class 'inla.mesh'
fm_as_sfc(x, ..., multi = FALSE)

## S3 method for class 'fm_mesh_2d'
fm_as_sfc(x, ..., multi = FALSE)

## S3 method for class 'inla.mesh.segment'
fm_as_sfc(x, ..., multi = FALSE)

## S3 method for class 'fm_segm'
fm_as_sfc(x, ..., multi = FALSE)

## S3 method for class 'sfc'
fm_as_sfc(x, ...)

## S3 method for class 'sf'
fm_as_sfc(x, ...)

Arguments

x

An object to be coerced/transformed/converted into another class

...

Arguments passed on to other methods

multi

logical; if TRUE, attempt to a sfc_MULTIPOLYGON, otherwise a set of sfc_POLYGON. Default FALSE

Value

  • fm_as_sfc: An sfc_MULTIPOLYGON or sfc_POLYGON object

  • fm_as_sfc: An sfc_MULTIPOLYGON or sfc_POLYGON object

Methods (by class)

  • fm_as_sfc(inla.mesh): [Experimental]

  • fm_as_sfc(fm_mesh_2d): [Experimental]

  • fm_as_sfc(inla.mesh.segment): [Experimental]

  • fm_as_sfc(fm_segm): [Experimental]

See Also

Other object creation and conversion: fm_as_fm(), fm_as_lattice_2d(), fm_as_mesh_1d(), fm_as_mesh_2d(), fm_as_segm(), fm_as_tensor(), fm_lattice_2d(), fm_mesh_1d(), fm_mesh_2d(), fm_segm(), fm_simplify(), fm_tensor()

Examples

fm_as_sfc(fmexample$mesh)
fm_as_sfc(fmexample$mesh, multi = TRUE)


fmesher documentation built on July 1, 2024, 5:07 p.m.