rGreater: Select cells with values above a threshold in a raster

Description Usage Arguments Value See Also Examples

View source: R/modify.operators.R

Description

Select cells with values above a threshold in a raster

Usage

1
rGreater(obj, thresh, background = NULL)

Arguments

obj

[RasterLayer(1)]
The object to modify.

thresh

[numeric(1)]
values above 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 lower than thresh have been set to background.

See Also

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

Examples

1
2
input <- rtRasters$continuous
visualise(rGreater(input, thresh = 40))

EhrmannS/rasterTools documentation built on Sept. 4, 2019, 10:34 a.m.