Documentation for SLiM function initializeSpecies, which is a method of the SLiM class Initialize. Note that the R function is a stub, it does not do anything in R (except bring up this documentation). It will only do anything useful when used inside a slim_block function further nested in a slim_script function call, where it will be translated into valid SLiM code as part of a full SLiM script.

initializeSpecies(tickModulo, tickPhase, avatar, color)

Arguments

tickModulo

An object of type integer or integer or string or string. Must be of length 1 (a singleton). The default value is 1. See details for description.

tickPhase

An object of type integer or integer or string or string. Must be of length 1 (a singleton). The default value is 1. See details for description.

avatar

An object of type integer or integer or string or string. Must be of length 1 (a singleton). The default value is "". See details for description.

color

An object of type integer or integer or string or string. Must be of length 1 (a singleton). The default value is "". See details for description.

Value

An object of type void.

Details

Documentation for this function can be found in the official SLiM manual: page 656.

Configure options for the species being initialized. This initialization function may only be called in multispecies models (i.e., models with explicit species declarations); in single-species models, the default values are assumed and cannot be changed. The tickModulo and tickPhase parameters determine the activation schedule for the species. The active property of the species will be set to T (thus activating the species) every tickModulo ticks, beginning in tick tickPhase. (However, when the species is activated in a given tick, the skipTick() method may still be called in a first() event to deactivate it.) See the active property of Species (section 25.15.1) for more details. The avatar parameter, if not "", sets a string value used to represent the species graphically, particularly in SLiMgui but perhaps in other contexts also. The avatar should generally be a single character - usually an emoji corresponding to the species, such as "🦊 " for foxes or "🐭 " for mice. If avatar is the empty string, "", SLiMgui will choose a default avatar. The color parameter, if not "", sets a string color value used to represent the species in SLiMgui. Colors may be specified by name, or with hexadecimal RGB values of the form "#RRGGBB" (see the Eidos manual for details). If color is the empty string, "", SLiMgui will choose a default color.

Author

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

Examples

## This just brings up the documentation:
initializeSpecies()