Convert simulation results to a tidy data.table
Source:R/simulation_chunk_result_flatten.R
flatten_simulation_results.RdThis function takes the nested list output from run_simulation() and converts it into a tidy data.table where each row represents one item response. The function pre-allocates the data.table to the exact size needed and then fills it efficiently. Column names are dynamically determined from the first trial result, excluding any .item_params verbose output.