Learn R Programming

geometr (version 0.2.10)

getHistory: Get the history of a spatial object.

Description

Get the history of a spatial object.

Usage

getHistory(x, ...)

# S4 method for ANY getHistory(x)

# S4 method for geom getHistory(x)

# S4 method for Raster getHistory(x)

Arguments

x

the object from which to derive the history.

...

other arguments.

Value

A list of the events that lead to x.

See Also

Other getters: getCRS(), getCols(), getExtent(), getFeatures(), getGroups(), getLayers(), getNames(), getPoints(), getRes(), getRows(), getType(), getWindow()

Examples

Run this code
# NOT RUN {
library(tibble)
library(magrittr)

geom <- tibble(x = c(40, 70, 70, 50),
               y = c(40, 40, 60, 70)) %>%
  gs_polygon() %>%
  gt_reflect(angle = 45)
getHistory(x = geom)

getHistory(x = gtRasters)
# }

Run the code above in your browser using DataLab