getx | R Documentation |
This function can be applied to a list
or bdmData
object to provide a rough estimate of the depletion time series x
.
getx(object, ...)
## S3 method for class 'bdm'
getx(object, ...)
## S3 method for class 'list'
getx(object, r, logK, ...)
object |
either a |
... |
additional arguments to generic function |
r |
an assumed value for the intrinsic growth rate |
logK |
an assumed value for the carrying capacity |
This function assumes a logistic production function and uses input values for the intrinsic growth and carrying capacity. These would usually be obtained through calls to rCalc
in the lhm package and getlogK
.
# get some data
data(albio)
dat <- bdmData(harvest = albio$catch, index = albio$cpue, time = rownames(albio))
# default model
mdl <- bdm()
# extract depletion from
# bdm object
getx(mdl)
# extract with data
mdl@data <- dat
getx(mdl)
# calculate depletion from
# catches and assumed parameters
getx(dat, logK = 6, r = exp(-1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.