View source: R/threshold_raster.R
threshold_raster | R Documentation |
Threshold raster.
threshold_raster(rast, threshold, value = 0, outfile)
rast |
A file path to a raster file. |
threshold |
A named list giving the minimum and/or maximum values
defining the range of values to retain. Values outside this range will be
replaced with |
value |
Numeric. The value supplied to cells beyond the threshold(s). |
outfile |
Character. Output raster file path. Parent directory will be
created recursively if required. If |
A RasterLayer
will be written to outfile
if provided,
and returned to R otherwise.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.