fm_as_segm | R Documentation |
fm_segm
Convert objects to fm_segm
fm_as_segm(x, ...)
fm_as_segm_list(x, ...)
## S3 method for class 'fm_segm'
fm_as_segm(x, ...)
## S3 method for class 'inla.mesh.segment'
fm_as_segm(x, ...)
## S3 method for class 'sfg'
fm_as_segm(x, ...)
## S3 method for class 'sfc_POINT'
fm_as_segm(x, reverse = FALSE, grp = NULL, is.bnd = TRUE, ...)
## S3 method for class 'sfc_LINESTRING'
fm_as_segm(x, join = TRUE, grp = NULL, reverse = FALSE, ...)
## S3 method for class 'sfc_MULTILINESTRING'
fm_as_segm(x, join = TRUE, grp = NULL, reverse = FALSE, ...)
## S3 method for class 'sfc_POLYGON'
fm_as_segm(x, join = TRUE, grp = NULL, ...)
## S3 method for class 'sfc_MULTIPOLYGON'
fm_as_segm(x, join = TRUE, grp = NULL, ...)
## S3 method for class 'sfc_GEOMETRY'
fm_as_segm(x, grp = NULL, join = TRUE, ...)
## S3 method for class 'sf'
fm_as_segm(x, ...)
## S3 method for class 'matrix'
fm_as_segm(
x,
reverse = FALSE,
grp = NULL,
is.bnd = FALSE,
crs = NULL,
closed = FALSE,
...
)
## S3 method for class 'SpatialPoints'
fm_as_segm(x, reverse = FALSE, grp = NULL, is.bnd = TRUE, closed = FALSE, ...)
## S3 method for class 'SpatialPointsDataFrame'
fm_as_segm(x, ...)
## S3 method for class 'Line'
fm_as_segm(x, reverse = FALSE, grp = NULL, crs = NULL, ...)
## S3 method for class 'Lines'
fm_as_segm(x, join = TRUE, grp = NULL, crs = NULL, ...)
## S3 method for class 'SpatialLines'
fm_as_segm(x, join = TRUE, grp = NULL, ...)
## S3 method for class 'SpatialLinesDataFrame'
fm_as_segm(x, ...)
## S3 method for class 'SpatialPolygons'
fm_as_segm(x, join = TRUE, grp = NULL, ...)
## S3 method for class 'SpatialPolygonsDataFrame'
fm_as_segm(x, ...)
## S3 method for class 'Polygons'
fm_as_segm(x, join = TRUE, crs = NULL, grp = NULL, ...)
## S3 method for class 'Polygon'
fm_as_segm(x, crs = NULL, ...)
x |
Object to be converted. |
... |
Arguments passed on to submethods |
reverse |
logical; When TRUE, reverse the order of the input points.
Default |
grp |
if non-null, should be an integer vector of grouping labels for
one for each segment.
Default |
is.bnd |
logical; if |
join |
logical; if |
crs |
A crs object |
closed |
logical; whether to treat a point sequence as a closed polygon.
Default: |
An fm_segm
or fm_segm_list
object
fm_as_segm()
: Convert an object to fm_segm
.
fm_as_segm_list()
: Convert each element, making a fm_segm_list
object
c.fm_segm()
, c.fm_segm_list()
,
[.fm_segm_list()
Other object creation and conversion:
fm_as_fm()
,
fm_as_lattice_2d()
,
fm_as_mesh_1d()
,
fm_as_mesh_2d()
,
fm_as_sfc()
,
fm_as_tensor()
,
fm_lattice_2d()
,
fm_mesh_1d()
,
fm_mesh_2d()
,
fm_segm()
,
fm_simplify()
,
fm_tensor()
fm_as_segm_list(list(
fm_segm(fmexample$mesh),
fm_segm(fmexample$mesh, boundary = FALSE)
))
(segm <- fm_segm(fmexample$mesh, boundary = FALSE))
(segm_sfc <- fm_as_sfc(segm))
(fm_as_segm(segm_sfc))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.