piankabio {pgirmess} | R Documentation |
Computes the Pianka's index of niche overlap
piankabio(dataframe1, dataframe2)
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 |
Computes the Pianka's index of niche overlap
Return the Pianka's index
Patrick Giraudoux <pgiraudo@univ-fcomte.fr>
to do
data(preybiom) attach(preybiom) jackal<-preybiom[site=="Y" & sp=="C",5:6] genet<-preybiom[site=="Y" & sp=="G",5:6] piankabio(jackal,genet)