| calcPred | R Documentation |
Predation Rate Calculation
calcPred(parmat, svec, preyvec, predvec, afun = inda, hfun = indh)
parmat |
matrix of parameters that define predator attack rates and handling times |
svec |
vector of size classes (upper bounds) |
preyvec |
vector of prey densities |
predvec |
vector of predator densities |
afun |
attack-rate function |
hfun |
handling time function |
svec <- 1:10
preyvec <- rep(1,10)
predvec <- 1
parmat <- matrix(c(1,1,1, ## c,d,g pred 1
1,1,1), ## c,d,g pred2
byrow=TRUE,
nrow=2,dimnames=list(c("pred1","pred2"),c("c","d","g")))
## calcPred()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.