Writes one folder (or workbook) per iteration with the observed data, the settings needed to re-create them, and, separately, the answer key:
Usage
export_data(
data,
dir,
give = c("data_lh", "data"),
format = "csv",
answer_key = TRUE,
aggregate = FALSE,
zip = FALSE
)Arguments
- data
a
floss_data.- dir
output folder (created).
- give
what goes into the trainee folders:
"data"or"data_lh"(adds the life-history parameters).- format
any of
"csv","xlsx"(needs 'writexl'; one workbook per iteration) and"rds"(onefloss_flr.rdsper iteration: a list by species ofas_flr()objects, i.e. FLQuants of catch, effort and length frequencies, FLIndices and the life-history FLPar, ready for JABBA3 and FLicc).- answer_key
write the
answer_keyfolder.- aggregate
also write the aggregated tables (for teaching):
catch_aggregate(by fleet, all fleets, all species),effort_aggregate(by fleet, all fleets),cpue_nominal(catch / effort at the three levels) andlfd_aggregate(by fleet and all fleets, as sampled and raised to the catch); seecatch_table()andlfd_aggregate().- zip
also write
<dir>.zip.