rel_res_fitness | R Documentation |
This is almost directly from code in Ives et al. (2020).
rel_res_fitness(para, p_res = 0.48)
para |
Numeric vector of the proportion of aphids that are parasitized. |
p_res |
The assumed proportion of aphids that are resistant to parasitism. This is the mean proportion from Ives et al. (2020). |
This function will be very slow if used inside an apply
function
because it already uses sapply
within.
Instead, para
should be a vector.
A numeric vector of r_r / r_s (relative fitness for resistance vs susceptible aphids)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.