pianka: Calculate pianka's Index

Description Usage Arguments Examples

Description

Calculate piankas Index from two vectors. In each vectors is the percentage of food items consummed by the 2 species.

Usage

1
pianka(species1,species2)

Arguments

species1

Vector with the proportion of food items for species 1

species2

Vector with the proportion of food items for species 2

Examples

1
2
3
4
5
6
names    <- c("rodents","insectivores","hare",
"carnivores","carrion","insects","plants",
"birds","ungulates")
wolf    <- c(0.6,0,0,8.5,0,0.01,0.042,0.1,90.7)
red_fox <- c(29,9.8,15,2.5,29.4,1.3,9.5,3.5,0)
pianka(wolf,red_fox)

cyrilmi/myfunctions documentation built on May 14, 2019, 1:39 p.m.