
Compute cross-section summary
compute_cross_section_summary.RdKeeps each group's latest reference date and aggregates it into a single
value per group. Counts rows when measure_col is NULL (headcount) and
sums the column otherwise (wage bill).