tseries | R Documentation |
Creates a data frame of time series statistics from FLStock objects, including catch, ebiomass, SSB, fishing mortality, harvest rate, and mean natural mortality.
Calculates the surplus production and expected yield etc for the estinates of SSB and biomass
tseries(object, ...)
## S4 method for signature 'FLBRP'
tseries(object)
## S4 method for signature 'FLStock'
tseries(
object,
flqs = list(catch = function(object) catch(object), eb = function(object)
ebiomass(object), ssb = function(object) ssb(object), f = function(object)
fbar(object), h = function(object) catch(object)/ebiomass(object), m =
function(object)
FLQuant(aaply(m(object)[ac(range(object)["minfbar"]:range(object)["maxfbar"])], 2,
mean), dimnames = dimnames(fbar(object))))
)
## S4 method for signature 'FLStocks'
tseries(
object,
flqs = list(catch = function(object) catch(object), eb = function(object)
ebiomass(object), ssb = function(object) ssb(object), f = function(object)
fbar(object), h = function(object) catch(object)/ebiomass(object), m =
function(object)
FLQuant(aaply(m(object)[ac(range(object)["minfbar"]:range(object)["maxfbar"])], 2,
mean), dimnames = dimnames(fbar(object))))
)
object |
an |
... |
Additional arguments (not currently used) |
seasons |
a numeric with seasons |
A data frame containing time series of:
catch - Catch values
eb - Exploitable biomass
ssb - Spawning stock biomass
f - Fishing mortality (Fbar)
h - Harvest rate (catch/ebiomass)
m - Mean natural mortality
FLQuants
object
expand
## Not run:
# For single stock
data(ple4)
ts1 <- tseries(ple4)
# For multiple stocks
stocks <- FLStocks(stock1=ple4, stock2=ple4)
ts2 <- tseries(stocks)
## End(Not run)
## Not run:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.