clean_data: Given sampling arguments remove ("clean") all data in a .dat...

Description Usage Arguments Value Note Author(s) See Also

View source: R/clean_data.r

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

1
2
3
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.

Note

This function does not write the result to file.

Author(s)

Cole Monnahan

See Also

calculate_data_units, change_data

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


ss3sim documentation built on Nov. 9, 2019, 1:06 a.m.