FLFisherycpp | R Documentation |
The same as the FLFishery class but all predictModel slots have been turned into FLQuant objects. The class is used for passing to C++ FLR objects.
## S4 method for signature 'FLFisherycpp'
capacity(object)
## S4 replacement method for signature 'FLFisherycpp,FLQuant'
capacity(object) <- value
## S4 replacement method for signature 'FLFisherycpp,numeric'
capacity(object) <- value
## S4 method for signature 'FLFisherycpp'
hperiod(object)
## S4 replacement method for signature 'FLFisherycpp,FLQuant'
hperiod(object) <- value
## S4 replacement method for signature 'FLFisherycpp,numeric'
hperiod(object) <- value
## S4 method for signature 'FLFisherycpp'
orevenue(object)
## S4 replacement method for signature 'FLFisherycpp,FLQuant'
orevenue(object) <- value
## S4 replacement method for signature 'FLFisherycpp,numeric'
orevenue(object) <- value
## S4 method for signature 'FLFisherycpp,ANY'
effort(object)
## S4 replacement method for signature 'FLFisherycpp,FLQuant'
effort(object) <- value
## S4 replacement method for signature 'FLFisherycpp,numeric'
effort(object) <- value
## S4 method for signature 'FLFisherycpp'
vcost(object)
## S4 replacement method for signature 'FLFisherycpp,FLQuant'
vcost(object) <- value
## S4 replacement method for signature 'FLFisherycpp,numeric'
vcost(object) <- value
## S4 method for signature 'FLFisherycpp'
fcost(object)
## S4 replacement method for signature 'FLFisherycpp,FLQuant'
fcost(object) <- value
## S4 replacement method for signature 'FLFisherycpp,numeric'
fcost(object) <- value
## S4 method for signature 'FLFisherycpp'
crewshare(object)
## S4 replacement method for signature 'FLFisherycpp,FLQuant'
crewshare(object) <- value
## S4 replacement method for signature 'FLFisherycpp,numeric'
crewshare(object) <- value
object |
Object to extract or operate on |
value |
Replacement value |
What have you done what's in your mind what do you need Where shall we go to let it out What have you seen, we don't know where you've been Life so often blows your candle out Believe in what is right, what's right for you tonight Who knows what the fuck it's all about
FLFisherycpp
objects inherit from FLCatches
woth a number of slots
added.
The list of FLCatch
object with catch data per stock,
(FLCatches
).
Name of the object, e.g. species or stock code, (character
).
Description of the data contents and origin, (character
).
Ranges of age and years, plusgroup, (numeric
).
Number of boats in the fleet, (FLQuant
).
Mean effort per boat applied by the fleet, (FLQuant
).
Start and end of fishing within each time step, as
proportions. An FLQuant
object with dimnames
‘quant=c(’start', 'end')' in the first dimension.
Variable costs per unit of effort, (FLQuant
).
Variable costs per unit of effort, (FLQuant
).
Revenues obtained from sources other than landings, (FLQuant
).
Formula, parameter values and inputs to calculate the
crew costs, (FLQuant
).
You can inspect the class validity function by using
getValidity(getClassDef('FLFishery'))
All slots in the class have accessor and replacement methods defined that allow retrieving and substituting individual slots.
The values passed for replacement need to be of the class of that slot. A numeric vector can also be used when replacing FLQuant slots, and the vector will be used to substitute the values in the slot, but not its other attributes.
A construction method exists for this class that can take named arguments for
any of its slots. All slots are then created to match the requirements of the
class validity. If an unnamed FLQuant
object is provided, this is used
for sizing but not stored in any slot.
Methods exist for various calculations based on values stored in the class:
Calculate the total crew costs by evaluating the formula in
crewshare
.
Total costs, calculated.
.
.
.
.
.
.
.
.
.
Iago Mosqueira, EC JRC.
FLCatches
data(ple4)
FLFishery(PLE=as(ple4, 'FLCatch'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.