manlysalpha: Manly's alpha feeding preference (Chesson 1978). Returns...

Description Usage Arguments Examples

Description

Manly's alpha feeding preference (Chesson 1978). Returns Manly's alpha index from vectors of initial and final food item counts.

Usage

1
2
manlysalpha(initial, consumed, stand = FALSE, perc = FALSE,
  deplete = TRUE)

Arguments

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.

Examples

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)

Example output

[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

selectapref documentation built on Feb. 9, 2020, 1:06 a.m.