View source: R/binarize_and_aggregate.R
binarize_and_aggregate | R Documentation |
Binarize a categorical raster and optionally aggregate and/or resample.
binarize_and_aggregate( infile, rle, outfile, extent, res, categories, overwrite = FALSE, return_rast = FALSE, quiet = FALSE )
infile |
Character. File path to a categorical raster. If |
rle |
A |
outfile |
Character. The target file path for the binarized raster. |
extent |
Output extent as an |
res |
output resolution as a numeric vector of 1 or 2 elements, or a
|
categories |
Integer or numeric vector of class values to be laballed as 1 in the target raster. |
overwrite |
Logical. Should |
return_rast |
Logical. Should the target raster be returned to R as a
|
quiet |
Logical. Should progress messages be suppressed? |
A binarized raster layer is written to outfile
, and if
return_rast
is TRUE
, the raster is additionally returned to R
as a Raster
layer.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.