tif_discretize: Read tif file and discretize values

Description Usage Arguments

View source: R/tif_discretize.R

Description

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

Usage

1
tif_discretize(tif_path, breaks = 4, extent, path_save, vals_na = -1)

Arguments

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


tereom/bnecology documentation built on Nov. 27, 2019, 2:15 p.m.