View source: R/ra_to_polygons.R
ra_to_polygons | R Documentation |
Function to transform a raster object to spatial polygons.
ra_to_polygons(
ra,
n = 4,
na.rm = TRUE,
digits = 12,
dissolve = FALSE,
data = TRUE
)
ra_to_points(ra)
ra |
Raster object. |
n |
Number of nodes which make up the polygon (4, 8, or 16). |
na.rm |
Should raster cells with |
digits |
Number of digits for the coordinates. |
dissolve |
Should polygons with the same values be dissolved into multi-polygon objects? |
data |
Should the data slot be dropped? |
Spatial polygons (SpatialPolygonsDataFrame or SpatialPolygons).
Stuart K. Grange
rasterToPolygons
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.