powered by
Compute information for assigning points to the vertices of the covering triangle
fm_vertex_projection(points, mesh)
SpatialPointsDataFrame, sf, or list of mesh vertices with projected data attached
SpatialPointsDataFrame
sf
list
A SpatialPointsDataFrame, sf, or list object
An fm_mesh_2d or inla.mesh object
fm_mesh_2d
inla.mesh
head(fm_vertex_projection(list(loc = fmexample$loc), fmexample$mesh)) head(fm_vertex_projection(fmexample$loc_sf, fmexample$mesh))
Run the code above in your browser using DataLab