GetN.fn | R Documentation |
Calculate input sample sizes
GetN.fn(
dir = NULL,
dat,
type = c("length", "age"),
species = c("all", "flatfish", "shelfrock", "sloperock", "thorny", "others"),
printfolder = "forSS3",
output = NULL,
verbose = TRUE
)
dir |
Directory where output will be saved. The directory where the file should be saved. If dir = NULL no output will be saved. |
dat |
A data frame of composition data created using |
type |
A string specifying whether doing "length" or "age" that is used to ensure the sample size is of the correct column and create the file name of the saved sheet. |
species |
A string specifying the species group of interest, which
will lead to the use of the correct species-specific value for
the number of unique samples per tow. See the function call for
allowed values, where the default is |
printfolder |
A string that will be appended to |
output |
A string, where the default is |
verbose |
A logical that specifies if you want to print messages and
warnings to the console. The default is |
Chantel R. Wetzel
Stewart, I.J. and O.S. Hamel. 2014. Bootstrapping of sample size for length- or age-composition data used in stock assessment. Canadian Journal of Fishery and Aquatic Science, 71(4): 581–588. 10.1139/cjfas-2013-0289.
## Not run:
bio <- pull_bio(
common_name = "petrale sole",
survey = "NWFSC.Combo"
)
n <- GetN.fn(
dat = bio,
type = "length",
species = "flatfish"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.