Displaying 1 result from an estimated 1 matches for "dprey".
Did you mean:
prey
2016 Apr 26
0
vectors of equations in ode / desolve
...e different species of Prey so Prey is a one dimensional
vector,
#Ingestion is also a one-dimensional vector. The number of species is
not defined a priory
Ingestion <- rIng * Prey * Predator
GrowthPrey <- rGrow * Prey * (1 - Prey/K)
MortPredator <- rMort * Predator
dPrey <- GrowthPrey - Ingestion
# the growth of predator would depend on the ingestion of all prays
regardless of species
sumIngestion<-sum(Ingestion)
dPredator <- sumIngestion * assEff - MortPredator
# returning an array of preys does produce an error
return(list(c(dPrey,...