tableSample.Rd
Create a table of samples by fleet and year to be included in an assessment document.
A data frame of biological samples
originating from the
Pacific Fishieries Information Network (PacFIN) data warehouse,
which originated in 2014. Data are pulled using sql calls, see
PullBDS.PacFIN()
.
A filename with the appropriate extension,
used to save the function output to the disk.
For example, LenComps.csv
or
file.path(getwd(), "SampleSize.csv")
.
Full, relative, or simple paths are allowed because the argument is used as
is, i.e., not redirected to a directory different than getwd()
.
Note that various functions within PacFIN.Utilities have different default
values for this input argument.
A vector of column names to stratify the output over. For
example, if you wish to summarize by ageing method, then the argument
would look like strat = "agemethod"
or, if you want to look at fleets
and gear, strat = c("fleet", "usegear")
.
Specify whether to calculate the length or Age samples. The default is to calculate the number of length samples.
A vector of years to remove from the data before
summarizing sample sizes. The default of NULL
leads to no
sub setting of the data.
A table is written to a csv file as specified in fname
and the data frame
is also returned as an object invisibly.