Description Usage Arguments Value Examples
Default function to govern behavior of warners under attack.
Warner warns a specified number of the most closely-related
individuals. May be used as an alternative function in which
the values of warnable_relationship
and dominant
are specified.
1 2 3 | warnRelatives(individuals, number_warned, warner_death_prob,
nonwarner_death_prob, hider_death_prob, warnable_relationship, relMatrix,
dominant = FALSE)
|
individuals |
Data frame containing id, sex, warner-status, mother id and father id. Value provided. |
number_warned |
Maximum number of individuals to warn. Value provided. |
warner_death_prob |
As in |
nonwarner_death_prob |
As in |
hider_death_prob |
As in |
warnable_relationship |
Lowest allowed relationship-degree for an individual to be eligible for warning. Default version sets this to 0.25. |
relMatrix |
The current relationship matrix. Value provided. |
dominant |
If |
A numerical vector of death probabilities in which the
i^{\text{th}} element corresponds to row i of
individuals
.
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.