View source: R/clip_polygon_list.R
clip_polygon_list | R Documentation |
Uses a polygon list to clip a given raster
clip_polygon_list(sample_polygons, sds_choose, file_save, disturbed)
sample_polygons |
should be a polygon list in SF language |
sds_choose |
is a spat raster dataset that will be clipped for each polygon |
file_save |
the location to store the clipped polygons |
disturbed |
Is this location disturbed? |
## Not run: file_save <- c('.') sample_polygons <- read_sf('./shapefile.shp') sds_to_run <- terra::sds(list.files('./stacked_metrics', pattern =- '00.tif$', full.names = T)) clip_polygon_list(sample_polygons, sds_choose = sds_to_run, file_save = file_save) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.