fm_as_sfc | R Documentation |
Conversion methods from mesh related objects to sfc
fm_as_sfc(x, ...)
## S3 method for class 'fm_mesh_2d'
fm_as_sfc(x, ..., format = NULL, 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, ...)
x |
An object to be coerced/transformed/converted into another class |
... |
Arguments passed on to other methods |
format |
One of "mesh", "int", "bnd", or "loc". Default "mesh". |
multi |
logical; if |
fm_as_sfc
: An sfc_MULTIPOLYGON/LINESTRING/POINT
or
sfc_POLYGON/LINESTRING/POINT
object
Other object creation and conversion:
fm_as_fm()
,
fm_as_lattice_2d()
,
fm_as_lattice_Nd()
,
fm_as_mesh_1d()
,
fm_as_mesh_2d()
,
fm_as_mesh_3d()
,
fm_as_segm()
,
fm_as_tensor()
,
fm_lattice_2d()
,
fm_lattice_Nd()
,
fm_mesh_1d()
,
fm_mesh_2d()
,
fm_segm()
,
fm_simplify()
,
fm_tensor()
fm_as_sfc(fmexample$mesh)
fm_as_sfc(fmexample$mesh, multi = TRUE)
fm_as_sfc(fmexample$mesh, format = "loc")
# Boundary edge conversion currently only supports (multi)linestring output,
# and does not convert to polygons.
suppressWarnings(
fm_as_sfc(fmexample$mesh, format = "bnd")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.