This callback specifies the code should be called early in the simulation cycle. For details on exactly when first(), late() and early() callbacks are run during a simulation see SLiM Manual: page 541 for "WF" models, or SLiM Manual: page 549 for "nonWF" models.

early()

Value

None

Author

Benjamin C Haller (bhaller@benhaller.com) and Philipp W Messer (messer@cornell.edu)

Examples

slim_block(1, early(), {
  sim.addSubpop("p1", 100)
})
#> A slimr_block:
#> <slimr_script[1]>
#> block_1:1 early() {
#>     sim.addSubpop("p1", 100);
#> }