SimParam_switchTrait {AlphaSimR} | R Documentation |
Replaces an existing trait.
lociMap |
a new object descended from
|
trait |
an integer indicating which trait to replace |
varA |
a new value for varA in the base population. If NULL, the existing value is retained. |
varG |
a new value for varG in the base population. If NULL, the existing value is retained. |
force |
should the check for a running simulation be ignored. Only set to TRUE if you know what you are doing. |
SP$switchTrait(lociMap, trait, varA = NULL, varG = NULL, force = FALSE)