View source: R/tif_discretize.R
Recieves a path to a tif, reads the raster, crops and sets to given extent, discretizes values and writes a new raster with the same name in given path
1 | tif_discretize(tif_path, breaks = 4, extent, path_save, vals_na = -1)
|
tif_path |
path to tif file that will be read and discretized |
breaks |
number of breaks passed to arules::discretize |
extent |
extent to which raster will be cropped and set |
path_save |
path to new file, where the discretized raster will be |
vals_na |
values to be set to NA saved |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.