Description Usage Arguments Value Examples
This is an S3 method for adding logs to a Container or Entity object in
a microsimulation pipeline. This method passes all the arguments to the log()
method of the object in x.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | get_log(x)
## S3 method for class 'Generic'
get_log(x)
## S3 method for class 'World'
get_log(x)
## S3 method for class 'Container'
get_log(x)
add_log(x, ...)
## S3 method for class 'World'
add_log(
  x,
  entity = NULL,
  desc,
  value,
  tag = NA_character_,
  time = .get_sim_time(),
  ...
)
## S3 method for class 'Container'
add_log(x, desc, value, tag = NA_character_, time = .get_sim_time(), ...)
## S3 method for class 'Entity'
add_log(x, desc, value, tag = NA_character_, time = .get_sim_time(), ...)
 | 
| x | (Container|Entity) | 
| ... | dots | 
| entity | ( | 
| desc | ( | 
| value | ( | 
| tag | ( | 
| time | ( | 
add_log invinsibly returns x, while get_log returns data.table::data.table
with the following structure:
| 1 2 3 4 5 6 | 
| 1 2 3 | create_toy_world()
add_log(world, entity = "Individual", desc = "count:individuals", value = world$entities$Individual$n())
get_log(world)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.