rLess: Select cells with values below a threshold in a raster

Description Usage Arguments Value See Also Examples

Description

Select cells with values below a threshold in a raster

Usage

1
rLess(obj, thresh, background = NULL)

Arguments

obj

[RasterLayer(1)]
The object to modify.

thresh

[numeric(1)]
values below this threshold should be retained.

background

[integerish(1)]
the value any cell with value NA should have.

Value

A RasterLayer of the same dimensions as obj, in which all values greater than thresh have been set to NA.

See Also

Other operators to select a subset of cells: rBounded, rGreater, rMask, rMatch

Examples

1
2
input <- rtRasters$continuous
visualise(rLess(input, thresh = 80))

EhrmannS/rasterTools documentation built on May 28, 2019, 8:24 a.m.