Learn R Programming

ss3sim (version 1.0.3)

calculate_data_units: Given sampling arguments, calculate super set of fleets, years, and data types.

Description

Given sampling arguments, calculate super set of fleets, years, and data types.

Usage

calculate_data_units(index_params = NULL, lcomp_params = NULL,
  agecomp_params = NULL, calcomp_params = NULL,
  mlacomp_params = NULL, wtatage_params = NULL)

Arguments

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.

wtatage_params

Named lists containing the arguments for sample_wtatage.

Value

An invisible list of fleets, years, and types.

See Also

clean_data, change_data

Examples

Run this code
# NOT RUN {
## Only one fleet
calculate_data_units(lcomp_params = list(fleets = 1, years = c(3, 4, 6)))
## Add new fleet
calculate_data_units(lcomp_params = list(fleets = 1, years = c(3, 4, 6)),
                     agecomp_params = list(fleets = 2, years = 5))
# }

Run the code above in your browser using DataLab