ruleset | R Documentation |
Returns a set of standard rules to be used by the verify method for an object of a given class.
ruleset(object, ...)
## S4 method for signature 'FLStock'
ruleset(object, ...)
object |
An object of any FLR class for which the method has been defined. |
... |
Names of positions in the standard list to subset. |
A standard minimal set of rules to check FLStock objects against using the verify method. The included rules are (with names in italics) check that:
there are no NAs in any slot, anyna.
catch.wt, landings.wt, discards.wt and stock.wt > 0.
mat, m.spwn and harvest.spwn values are between 0 and 1.
harvest >= 0.
cohorts in the stock.n slot contain decreasing numbers, except for the plusgroup age.
A named list containing the rules defined for for the class object belongs to.
The FLR Team
data(ple4)
ruleset(ple4)
# Extract single rule by name
ruleset(ple4, 'anyna')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.