View source: R/writeTCSAM02_SizeCompsData.R
writeTCSAM02_SizeCompsData | R Documentation |
Function to write size composition data to a connection in TCSAM02 input format.
writeTCSAM02_SizeCompsData(
con = stdout(),
dfrZCs = NULL,
dfrSSs = NULL,
cutpts = NULL,
tail_compression = c(0, 0),
optFit = c("BY_X", "BY_XM"),
likeType = c("MULTINOMIAL", "DIRICHLET-MULTINOMIAL"),
likeWgt = 1,
unitsIn = c("ONES", "MILLIONS"),
unitsOut = c("MILLIONS", "ONES")
)
con |
: connection to use (default=stdout) |
dfrZCs |
: size comps dataframe to write to connection |
dfrSSs |
: sample size dataframe corresponding to dfrZCs |
cutpts |
: vector of cutpoints that were used to create the size comps |
tail_compression |
: two-element vector of compresssion factors |
optFit |
: objective function fitting option (e.g., "BY_X","BY_XM") |
likeType |
: likelihood type ("MULTINOMIAL" or "DIRICHLET-MULTINOMIAL") |
likeWgt |
: likelihood weight (multiplier) |
unitsIn |
: input catch units ("ONES" or "MILLIONS") |
unitsOut |
: output catch units ("MILLIONS" or "ONES) |
The input values should be in ONES for abundance or KG for biomass data.
The input dataframes should have the following column names
year
sex
maturity
shell condition
size (dfrZCs only)
value (dfrZCs) or ss (dfrSSs)
Invisibly returns the connection con
to allow piping.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.