Description Usage Arguments Value Examples
View source: R/Entity-functions.R
Get the history data of a given Entity. If a Container object is given then this will return a list of data.tables or NULL if an Entity in the Container doesn't have any history data.
1 2 3 4 5 6 7 | get_history(x, ...)
## S3 method for class 'Container'
get_history(x, ...)
## S3 method for class 'Entity'
get_history(x, ...)
|
x |
An R6 object that belongs to one of these classes: Entity, Population and World. |
... |
(not being used) dots |
a list of data.table or NULL
.
1 2 3 4 5 6 7 8 9 10 | create_toy_world()
add_history(world$get("Individual"),
ids = 1:100,
event = "test_event1",
time = 1
)
get_history(world)
get_history(world$get("Individual"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.