## This example takes some time to run.
## Please uncomment the code below to run.
#library(dplyr)
#library(compositions)
## Fatty Acids
#data(FAset)
#ext.fa <- as.vector(unlist(FAset))
## Predators
#data(predatorFAs)
#pred.mat <- predatorFAs[, -c(1:4)]
#n.pred <- nrow(pred.mat)
## Prey
#data(preyFAs)
#prey.mat <- preyFAs[, -c(1,3)]
#FC = preyFAs[,c(2,3)]
#FC = as.vector(tapply(FC$lipid,FC$Species,mean,na.rm=TRUE))
## Calibration Coefficients
#data(CC)
#cal.vec = CC[,2]
#cal.mat = replicate(n.pred, cal.vec)
#rownames(cal.mat) <- CC$FA
## Diet Estimates
#mle.est <- p.MLE(pred.mat, prey.mat, cal.mat, FC, ext.fa)
#mle.est$"Diet Estimates"
Run the code above in your browser using DataLab