#Load diet data from Casaux1998, which contains diet for two populations of Harpagifer
# antarcticus in percent frequency, percent number, and percent mass.
data(Casaux1998)
#Calculate all diet indices (IOP, IRI, FQ, GII, MFI, WSI), return the raw data, and
#all calculations.
CompositeIndices(DietData = Casaux1998, Indices = c("IOP","IRI","FQ", "GII", "MFI", "WSI"),
PercentNumber = 4, PercentOccurrence = 3, PercentVolWeight = 5, ReturnRaw = TRUE,
PercentOnly = FALSE)
#Calculate all three diet indices and return only the percent of the index
CompositeIndices(DietData = Casaux1998, Indices = c("IOP","IRI","FQ"), PercentNumber = 4,
PercentOccurrence = 3, PercentVolWeight = 5, ReturnRaw = FALSE, PercentOnly = TRUE)
#Calculate Feeding Quotient and return the raw data and the all calculations.
CompositeIndices(DietData = Casaux1998, Indices = "FQ", PercentNumber = 4, PercentVolWeight = 5,
ReturnRaw = TRUE, PercentOnly = FALSE)
#Calculate Geometric Importance Index and return the raw data and the all calculations.
CompositeIndices(DietData = Casaux1998, Indices = "GII", PercentNumber = 4,
PercentOccurrence = 3, PercentVolWeight = 5, ReturnRaw = TRUE, PercentOnly = FALSE)
Run the code above in your browser using DataLab