Description Slots Extends Constructor Methods Author(s) See Also Examples
An internal class for FLMetier
objects that stores stock or species specific
information on landings, discards and catches, catchability and price.
Catches are computed as the sum of landings and discards.
Landings, discards and catches are described with four slots each, one intented to deal with age (or other quant)-aggregated total estimate and three intented to deal with age (or other quant)-disaggregated information (numbers at age, mean weight at age and selectivity at age).
Catchability in the catches. Can be quant-disagggregated or not. FLQuant
.
Total landings in weight. FLQuant
.
Numbers at quant in landings. FLQuant
.
Mean weight at quant in catches. FLQuant
.
Selectivity at quant in the catches. FLQuant
.
Total discards in weight. FLQuant
.
Numbers at quant in catches. FLQuant
.
Mean weight at quant in discards. FLQuant
.
Selectivity at quant in the discards. FLQuant
.
mean price. Can be quant-disagggregated or not. FLQuant
.
Generic name slot inherited from FLComp class. character
.
Generic description slot inherited from FLComp class. character
.
Generic range slot inherited from FLComp class indicating
min quant, max quant, plusgroup quant,minyear and maxyear. numeric
.
FLComp
The FLCatch(object)
constructor method allows simple creation of new FLCatch objects from a species name and optional FLQuants.
Creates a new FLCatch object using the dimensions of
the FLQuant. If no slot is specified, all slots are filled with NA. If one slot is
specified, it will receive the value of the FLQuant, while other slots will be filled
with NA. It is also possible to specify several slots receiving different values from
different FLQuant, if their dimensions 2 to 6 are identical. The first dimension of the
slots catch
, discards
and landings
is by default "all".
Creates a new FLCatch whose slots are filled with an empty FLQuant with quant="all" and year=1
coerces the FLCatch object to a data.frame. Slot names are passed in the slot column. The name, desc and range slots is passed as an attribute of the data.frame
signature(x=FLCatch, row.names=missing, optional=missing)
accessor method for the catch slot
signature(object=FLCatch)
accessor method for the catch.q slot
signature(object=FLCatch)
replacement method for the catch.q slot
signature(object=FLCatch, value=FLQuant)
returns catch in numbers by quant as sum of landings.n and discards.n
signature(object=FLCatch)
returns catch.sel as calculated from landings.sel and discards.sel
signature(object=FLCatch)
replacement method for the catch.sel slot
signature(object=FLCatch, value=FLQuant)
returns catch.wt as a weighted mean of landings.wt and discards.wt
signature(object=FLCatch)
accessor method for the discards slot
signature(object=FLCatch)
replacement method for the discards slot
signature(object=FLCatch,value=FLQuant)
accessor method for the discards.n slot
signature(object=FLCatch)
replacement method for the discards.n slot
signature(object=FLCatch,value=FLQuant)
accessor method for the discards.sel slot
signature(object=FLCatch)
replacement method for the discards.sel slot
signature(object=FLCatch,value=FLQuant)
accessor method for the discards.wt slot
signature(object=FLCatch)
replacement method for the discards.wt slot
signature(object=FLCatch,value=FLQuant)
accessor method for the landings slot
signature(object=FLCatch)
replacement method for the landings slot
signature(object=FLCatch,value=FLQuant)
accessor method for the landings.n slot
signature(object=FLCatch)
replacement method for the landings.n slot
signature(object=FLCatch,value=FLQuant)
accessor method for the landings.sel slot
signature(object=FLCatch)
replacement method for the landings.sel slot
signature(object=FLCatch,value=FLQuant)
accessor method for the landings.wt slot
signature(object=FLCatch)
replacement method for the landings.wt slot
signature(object=FLCatch,value=FLQuant)
accessor method for the price slot
signature(object=FLCatch)
replacement method for the price slot
signature(object=FLCatch,value=FLQuant)
creates a FLFleet object with one single metier from a FLCatch object. All other FLFleet and FLMetier slots are set to NA.
signature(object=FLCatch)
creates a FLMetier object from a FLCatch object. Effshare and vcost slots are set to NA.
signature(catches=FLCatch)
coerces a FLStock object into a FLCatch object. This method is called with as(x,"FLCatch"). In that case, catch.sel is calculated as harvest(x)/max(harvest(x)), catch.q is set to 1 and landings.sel and discards.sel are calculated proportionally to numbers
signature(from=NULL,to=FLCatch,strict=missing)
computes the total catch from the quant-structured values in numbers and weight per individual.
signature(object=FLCatch)
computes the total discards from the quant-structured values in numbers and weight per individual.
signature(object=FLCatch)
computes the total landings from the quant-structured values in numbers and weight per individual.
signature(object=FLCatch)
The FLR Team
as.data.frame, catch, catch<-, catch.q, catch.q<-, catch.n, catch.n<-, catch.sel, catch.sel<-, catch.wt, catch.wt<-, coerce, computeCatch, computeDiscards, computeLandings, discards, discards<-, discards.n, discards.n<-, discards.sel, discards.sel<-, discards.wt, discards.wt<-, FLFleet, FLMetier, landings, landings<-, landings.n, landings.n<-, landings.sel, landings.sel<-, landings.wt, landings.wt<-, price, price<-, FLComp
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.