Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

setHistory

Set additional entries to the history of an object


Description

Set additional entries to the history of an object

Usage

setHistory(x, history, ...)

## S4 method for signature 'ANY'
setHistory(x)

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

## S4 method for signature '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.

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.

Value

The object x where the history slot has been updated.

See Also

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


geometr

Generate and Modify Interoperable Geometric Shapes

v0.2.10
GPL-3
Authors
Steffen Ehrmann [aut, cre] (<https://orcid.org/0000-0002-2958-0796>), Dan Sunday [cph] (fast point-in-polygon algorithm.)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.