Learn R Programming

pgirmess (version 1.4.0)

piankabio: Computes the Pianka's index of niche overlap

Description

Computes the Pianka's index of niche overlap

Usage

piankabio(dataframe1, dataframe2)

Arguments

dataframe1
a data frame of two columns: column 1 = dietary category, column 2 = biomass
dataframe2
a data frame of two columns: column 1 = dietary category, column 2 = biomass

Value

  • Return the Pianka's index

Details

Computes the Pianka's index of niche overlap

References

to do

See Also

piankabioboot

Examples

Run this code
data(preybiom)
attach(preybiom)
jackal<-preybiom[site=="Y" & sp=="C",5:6]
genet<-preybiom[site=="Y" & sp=="G",5:6]

piankabio(jackal,genet)

Run the code above in your browser using DataLab