tableSample | R Documentation |
Create a table of samples by fleet and year to be included in an assessment document.
tableSample(
Pdata,
fname = paste0("fishery_", comps, "_samples.csv"),
strat = "SOURCE_AGID",
comps = c("LEN", "AGE"),
remove_yrs = NULL
)
Pdata |
A data frame returned from |
fname |
A filename with the appropriate extension, used to save the
function output to the disk. For example, |
strat |
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 |
comps |
Specify whether to calculate the length or Age samples. The default is to calculate the number of length samples. |
remove_yrs |
A vector of years to remove from the data before
summarizing sample sizes. The default of |
A table is written to a csv file as specified in fname
and the data frame
is also returned as an object invisibly.
Chantel R. Wetzel
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.