Make one row of simulation output
make_output_row.RdInternal function used to capture all output fields from
.sim_pop for a single year. Called inside the simulation loop
in sim_pop.
Fields stored as scalar values are passed through as-is. Fields wrapped in
list() are treated as age-structured vectors.
assemble_output dynamically detects all list-valued fields
and, depending on age_structured_output, either expands them into
one column per age class (<field>_1, <field>_2, ...) or
collapses them to a single summed column. Adding a new age-structured field
requires only wrapping its value in list() here; no changes to
assemble_output are needed.