stack_dummy: raster stack to dummy

View source: R/stack_dummy.R

stack_dummyR Documentation

raster stack to dummy

Description

convert categorical raster layers to dummy(binary) raster layers

Usage

stack_dummy(l, threshold = 10)

Arguments

l

character list of raster filenames with path

threshold

numeric maximum number of unique values to be a factor raster

Value

SpatRaster stack of binary layers and name of factor raster layers

Examples

# rd = stack_dummy(l = l, threshold = 8)

elpidiofilho/mdsFuncs documentation built on April 14, 2022, 5:40 p.m.