R/clean_data.r
clean_data.RdThis prepares a .dat file to be used by an estimation method,
whereas before it may have had leftover data from sampling purposes.
clean_data(
dat_list,
lcomp_params = NULL,
agecomp_params = NULL,
calcomp_params = NULL,
mlacomp_params = NULL,
verbose = FALSE
)A Stock Synthesis data list object as read in from
SS_readdat.
Be sure to correctly specify which section of the data file you want
to work with when reading it in using the section argument.
Where, section = 1 reads in the input values used to run the model
and section = 2 reads in the expected values generated given all the
input to the OM. section = 3 is not used within ss3sim, but this
section provides bootstrapped data sets that have been sampled internally
within SS.
Named lists containing the arguments for
sample_lcomp().
Named lists containing the arguments for
sample_agecomp().
Named lists containing the arguments for
sample_calcomp().
Named lists containing the arguments for
sample_mlacomp().
When TRUE it will print a message when rows are
deleted.
An invisible cleaned data list as an object.
This function does not write the result to file.
Other sampling functions:
sample_agecomp(),
sample_calcomp(),
sample_catch(),
sample_discard(),
sample_index(),
sample_lcomp(),
sample_mlacomp(),
sample_wtatage()