manlysalpha {selectapref} | R Documentation |
Manly's alpha feeding preference (Chesson 1978). Returns Manly's alpha index from vectors of initial and final food item counts.
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. |
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)