This function fills the pre-allocated data.table vectors with data from simulation results, iterating through all conditions and trials.
fill_data_table(
sim_results,
dt_lists,
trial_col_names,
cond_param_names,
first_trial_col
)Named list of filled vectors ready for data.table creation
The output from run_simulation(), a list of conditions
Named list of pre-allocated vectors for each column
Character vector of trial column names
Character vector of condition parameter names
Name of the first trial column to use for item counting