levin: Calculate levin's Index

Description Usage Arguments Examples

View source: R/levin.R

Description

Calculate levin Index from a vector. the vector should contain the percentage of food items consummed by a species.

Usage

1
levin(species,stand=TRUE)

Arguments

species

Vector with the proportion of food items for the species

stand

if TRUE then levins is standardized

Examples

1
2
3
4
5
names    <- c("rodents","insectivores","hare",
"carnivores","carrion","insects","plants",
"birds","ungulates")
red_fox <- c(29,9.8,15,2.5,29.4,1.3,9.5,3.5,0)
levin(red_fox,stand=TRUE)

cyrilmi/teaching documentation built on May 12, 2017, 2:26 p.m.