View source: R/adfg.ExportWideZCs.R
adfg.ExportWideZCs | R Documentation |
Function to export size compositions in wide format.
adfg.ExportWideZCs(
dfrSSs,
dfrZCs,
byFacs = c("fishery", "area", "sex", "shell condition", "year"),
sizeCol = "size",
valCol = "abundance",
ssCol = "ss",
csvSSs = "dfrSSs.csv",
csvZCs = "dfrZCs.csv",
writeFiles = TRUE,
verbose = FALSE
)
dfrSSs |
|
dfrZCs |
|
byFacs |
|
sizeCol |
|
valCol |
|
ssCol |
|
csvSSs |
|
csvZCs |
|
writeFiles |
|
verbose |
|
Uses sqldf::sqldf
, reshape2::dcast
, and wtsUtilities::Sum
.
Input column names should given "as is" and NOT be backquoted.
A list with named elements
tblZCs - the wide-format size compositions
tblSSs - a dataframe with sample sizes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.