Description Usage Arguments Examples
Manly's alpha feeding preference (Chesson 1978). Returns Manly's alpha index from vectors of initial and final food item counts.
1 2 | manlysalpha(initial, consumed, stand = FALSE, perc = FALSE,
deplete = TRUE)
|
initial |
A vector of initial food items counts available to the organism in the environment |
consumed |
A vector of food items consumed by the organism |
stand |
Converts values with highest standardized to "1"? Defaults to FALSE. |
perc |
Converts values to percentages? Defaults to FALSE. |
deplete |
For use in experiments where food sources deplete? Defaults to TRUE. |
1 2 3 4 5 6 7 | initial_prey_count <- c(10,10,10,10,10,10)
number_prey_consumed <- c(9,8,1,3,5,9)
manlysalpha(initial = initial_prey_count, consumed = number_prey_consumed,
stand = TRUE, perc = FALSE, deplete = TRUE)
manlysalpha(initial = initial_prey_count, consumed = number_prey_consumed,
stand = TRUE, perc = TRUE, deplete = TRUE)
|
[1] 1.00000000 0.69897000 0.04575749 0.15490196 0.30103000 1.00000000
[1] 100.000000 69.897000 4.575749 15.490196 30.103000 100.000000
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.