catch {FLCore} | R Documentation |
Object such as FLStock-class
that incorporate quant-dissagregated objects for catch, diacards and landings nunber and weights, usually have quant-aggregated versions. To estimate the later from the first two, these methods (catch
, landings
and discards
) can be used.
catch(object, ...) landings(object, ...) discards(object, ...)
object |
An object containing slots for numbers-by-quant and weight-at-quant. Currently object can be of class FLStock-class or FLCatch-class . |
... |
Extra arguments accepted by each implementation |
Sums catch numbers at age multiplied by catch weights at age within a year to give total catch. Total
landings and total discards are calculated in a similar fashion. The method returns an FLQuant-class
with first dimension of length one.
The catch method has an additional arguement "overwrite". With the default setting of FALSE, the method returns an
FLQuant-class
. If overwrite=TRUE the method will return an FLStock-class
for which the catch.n,
catch.wt and catch slots have been filled. catch.n is calculated as the sum of landings.n and discards.n. catch.wt is a
weighted average of landings.wt and discards.wt.
On creation of a new FLStock-class
object, discards.n and discards.wt slots are set to 'NA' by default. If discards data are not available the user should specify
zero values (ie. stock@discards.n[,,,,] <- 0 ) otherwise catch and discards methods will return 'NA' values.
An object of class FLQuant-class
whose first dimension is of length one.
FLR Team
FLStock-class
, catch,FLStock-method