Set additional entries to the history of an object

setHistory(x, history, ...)

# S4 method for ANY
setHistory(x)

# S4 method for geom
setHistory(x, history = NULL)

# S4 method for RasterLayer
setHistory(x, history = NULL)

Arguments

x

the object for which to set the coordinate reference system.

history

[list(1)]
the history to set for this object.

...

other arguments.

Value

The object x where the history slot has been updated.

Details

Both, objects of class geom and Raster* have the slot @history, which contains the provenance of that object. With setHistory, that provenance can be updated, based on the modification the object has been exposed to. This happens automatically for all geometry operations that come with geometr.

See also

Other setters: setCRS(), setFeatures(), setGroups(), setNames(), setWindow()