View source: R/getFeatureIDs.R
getFeatureIDs | R Documentation |
Extracts cell IDs from a model mesh for each indicator region. Currently only supports sf objects
getFeatureIDs( shpFeature, mesh = vect(system.file("extdata/gis/nsrsm_v352", "nsrsm_mesh_landuse.shp", package = "RSM"), "nsrsm_mesh_landuse"), cellIDcolumn = "CellId" )
shpFeature |
an sf object with the indicator region, transect, point |
mesh |
sf object with model mesh cells and cell ID data (mesh must have a column named "CellId") |
cellIDcolumn |
name of column containing cell identifiers. Case insensitive. |
a list with three elements: a vector of cell IDs, (2) a vector indexing selected cells in the original mesh, and (3) a SpatVector object with the intersection of the mesh and the input shapefile
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.