compute | R Documentation |
Methods to compute total quant-aggregated catch, landings, discards and stock biomass from age or length-structured numbers and mean weights.
Methods to compute total quant-aggregated catch, landings, discards and stock biomass from age or length-structured numbers and mean weights.
computeLandings(object, ...)
computeDiscards(object, ...)
computeCatch(object, ...)
computeStock(object, ...)
computeHarvest(object, catch, ...)
computeLandings(object, ...)
computeDiscards(object, ...)
computeCatch(object, ...)
computeStock(object, ...)
## S4 method for signature 'FLS'
computeLandings(object, na.rm = TRUE)
## S4 method for signature 'FLS'
computeDiscards(object, na.rm = TRUE)
## S4 method for signature 'FLS'
computeCatch(object, slot = "catch", na.rm = TRUE)
## S4 method for signature 'FLS'
computeStock(object, na.rm = TRUE)
These methods compute the total catch, landings, discards and stock biomass
from the quant-structured values in numbers and weight per individual. The
calculation for landings, discards and stock involves the product of the
landings/discards/stock in numbers (landings.n
, discards.n
or
stock.n
) by the individual weight-at-quant (landings.wt
,
discards.wt
or stock.wt
), as in
L=L_n * L_{wt}
By selecting slot="catch"
, computeCatch
can calculate in the
same way the total catch from the catch-at-quant and weight in the catch.
Those two values (in slots catch.n
and catch.wt
) can also be
calculated (from landings and discards) by specifying slot="n"
and
slot="wt"
respectively. Calling computeCatch
with option
slot="all"
will carry out the three calculations. In this case, the
returned object will be of class FLQuants
, with element names
catch
, catch.n
and catch.wt
, which can then be passed
directly to the catch<-
replacement method.
These methods compute the total catch, landings, discards and stock biomass
from the quant-structured values in numbers and weight per individual. The
calculation for landings, discards and stock involves the product of the
landings/discards/stock in numbers (landings.n
, discards.n
or
stock.n
) by the individual weight-at-quant (landings.wt
,
discards.wt
or stock.wt
), as in
L=L_n * L_{wt}
By selecting slot="catch"
, computeCatch
can calculate in the
same way the total catch from the catch-at-quant and weight in the catch.
Those two values (in slots catch.n
and catch.wt
) can also be
calculated (from landings and discards) by specifying slot="n"
and
slot="wt"
respectively. Calling computeCatch
with option
slot="all"
will carry out the three calculations. In this case, the
returned object will be of class FLQuants
, with element names
catch
, catch.n
and catch.wt
, which can then be passed
directly to the catch<-
replacement method.
computeCatch(object, ...)
computeLandings(object, ...)
computeDiscards(object, ...)
computeStock(object, ...)
computeCatch(object, ...)
computeLandings(object, ...)
computeDiscards(object, ...)
computeStock(object, ...)
The FLR Team
FLComp
FLComp
data(ple4)
summary(computeLandings(ple4))
summary(computeCatch(ple4, slot="all"))
stock(ple4) <- computeStock(ple4)
landings(ple4) <- computeLandings(ple4)
catch.n(ple4) <- computeCatch(ple4, slot="n")
catch(ple4) <- computeCatch(ple4, slot="all")
data(ple4)
summary(computeLandings(ple4))
summary(computeCatch(ple4, slot="all"))
stock(ple4) <- computeStock(ple4)
landings(ple4) <- computeLandings(ple4)
catch.n(ple4) <- computeCatch(ple4, slot="n")
catch(ple4) <- computeCatch(ple4, slot="all")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.