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 <- rtData$continuous
binarised <- rBinarise(input, thresh = 30)
visualise(rOffset(binarised, value = 2))

EhrmannS/rasterTools documentation built on Feb. 4, 2019, 11:22 a.m.