Learn R Programming

ss3sim (version 0.9.0)

clean_data: Given sampling arguments remove ("clean") all data in a .dat file that is not specified

Description

This prepares a .dat file to be used by an EM, whereas before it may have had leftover data from sampling purposes. See examples in change_data.

Usage

clean_data(dat_list, index_params = NULL, lcomp_params = NULL,
  agecomp_params = NULL, calcomp_params = NULL, mlacomp_params = NULL,
  verbose = FALSE)

Arguments

dat_list
An SS data list object as read in from SS_readdat in the r4ss package. Make sure you select option section=2.
index_params
Named lists containing the arguments for sample_index.
lcomp_params
Named lists containing the arguments for sample_lcomp.
agecomp_params
Named lists containing the arguments for sample_agecomp.
calcomp_params
Named lists containing the arguments for sample_calcomp.
mlacomp_params
Named lists containing the arguments for sample_mlacomp.
verbose
When TRUE it will print a message when rows are deleted.

Value

  • An invisible cleaned data list as an object.

See Also

calculate_data_units, change_data

Other sampling functions: sample_agecomp, sample_calcomp, sample_index, sample_lcomp, sample_mlacomp, sample_wtatage