rOffset: Offset the values in a raster.

Description Usage Arguments Value See Also Examples

View source: R/modify.operators.R

Description

Offset the values in a raster.

Usage

1
rOffset(obj, value = 1)

Arguments

obj

[RasterLayer(1)]
The object to modify.

value

[integerish(1)]
the value by which to offset all values in the raster (can also be negative).

Value

A RasterLayer of the same dimension as obj, in which all values have been offsetted by value.

See Also

Other operators to modify cell values: rBinarise, rCategorise, rDistance, rFillNA, rPermute, rRange, rSubstitute

Examples

1
2
3
input <- rtRasters$continuous
binarised <- rBinarise(input, thresh = 30)
visualise(rOffset(binarised, value = 2))

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