as.inla.mesh.segment {INLA} | R Documentation

## Convert `sp` objects to `inla.mesh.segment` objects.

### Description

by `fmesher::fm_as_segm()`

### Usage

    as.inla.mesh.segment(sp, ...)

    inla.sp2segment(sp, ...)

### Arguments

`sp` | An `sp` polygon object of class `Polygon`, `Polygons`, `SpatialPolygons`, or `SpatialPolygonsDataFrame`.
`...` | Additional arguments passed on to `fmesher::fm_as_segm()`.

### Value

A `inla.mesh.segment()` object, or a list of `inla.mesh.segment()` objects.

### Functions

- `inla.sp2segment()`: by `fmesher::fm_as_segm()`

### Author(s)

Finn Lindgren finn.lindgren@gmail.com

### See Also

`inla.mesh.segment()`

[Package INLA version 26.02.05 Index]