Description Usage Arguments Value Author(s) Source See Also Examples
View source: R/small-methods.R
This function amends the history information of a "pTs"
or
"pField"
object by adding a given character string (e.g., a comment)
to the "history"
attribute of the object together with the date
information of this action.
1 | AddHistory(x, newhist, date = TRUE)
|
x |
a |
newhist |
character string with the history information to be added. |
date |
logical, whether or not to append the current date to the
history attribute; defaults to |
the "pTs"
or "pField"
object with the amended
history.
Thomas Laepple
Function copied from "basis.R" in paleolibary/src/.
Other history:
GetHistory()
1 2 3 4 5 6 7 8 9 10 11 12 | # Create empty pTs object:
x <- pTs(lat = -75, lon = 0, time = 1,
history = sprintf("Object created."))
# Check history
GetHistory(x)
# Some changes made
x <- AddHistory(x, newhist = "Changed xyz.")
# Check new history
GetHistory(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.