flagval | R Documentation |
Returns a data.frame of flag settings for the specified flag type and flag numbers.
The following numeric identifiers are used for the flag types:
1 - parest flags;
2 - age flags;
-1 - fish flags;
-10001 - tag flags;
-100001 - region flags.
flagval(x, flagtype, flag, ...)
x |
an object of class MFCLPar. |
flagtype |
Numeric flag type identifier. |
flag |
Numeric flag number. |
... |
Currently ignored. |
data.frame of flag settings
flagSummary
flagDiff
## Not run:
# parest flag 20
flagval(par, 1, 20)
# set parest flag 20 to a new value
flagval(par, 1, 20) <- 12
# fish flag 3 for fishery 7
flagval(par, -7, 3)
# fish flags 3 and 7 for fisheries 1:11
flagval(par, -c(1:11), c(3,7))
# changing the value of fish flags 3 and 7 for fisheries 1:11
flagval(par, -c(1:11), c(3,7)) <- c(36, 3)
# tag flags
flagval(par, -10001, 1:n_tag_groups(frq))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.