rBounded: Select cells with values between an upper and lower threshold...

Description Usage Arguments Value See Also Examples

View source: R/modify.operators.R

Description

Select cells with values between an upper and lower threshold in a raster

Usage

1
rBounded(obj, range = NULL, background = NULL)

Arguments

obj

[RasterLayer(1)]
The object to modify.

range

[numeric(2)]
minimum and maximum value between which the values will be selected.

background

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

Value

A RasterLayer of the same dimension as obj, where the cells with values covered by range retain their value and other cells are set to NA.

See Also

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

Examples

1
2
input <- rtRasters$continuous
visualise(rBounded(input, range = c(40, 80)))

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