mesh_2_sf {stelfi} | R Documentation |
Transform a fmesher::fm_mesh_2d
into a sf
object
Description
Transform a fmesher::fm_mesh_2d
into a sf
object
Usage
mesh_2_sf(mesh)
Arguments
mesh |
A |
Value
A simple features, sf
, object.
Source
Modified from sp
based function suggested by Finn in the
R-inla discussion Google Group
https://groups.google.com/g/r-inla-discussion-group/c/z1n1exlZrKM.
See Also
Examples
data(horse_mesh, package = "stelfi")
sf <- mesh_2_sf(horse_mesh)
if(require("ggplot2")) {
ggplot(sf) + geom_sf()
}
[Package stelfi version 1.0.1 Index]