util_binarize: Binarize continuous raster values

Description Usage Arguments Details Value Examples

Description

Classify continuous raster values into binary map cells based upon given break(s).

Usage

1
2
3
4
util_binarize(x, breaks)

## S3 method for class 'RasterLayer'
util_binarize(x, breaks)

Arguments

x

Raster* object

breaks

Vector with one or more break percentages

Details

Breaks are considered to be habitat percentages (p). If more than one percentage is given multiple layers are written in the same brick.

Value

RasterLayer / RasterBrick

Examples

1
2
breaks <- c(0.3, 0.5)
binary_maps <- util_binarize(gradient_landscape, breaks)

landscapetools documentation built on May 1, 2019, 9:22 p.m.