Audit Trail

Mini Example — CBS Population Data (37296ned)

Generated: 2026-11-10
Script: code/make_results.R
4 macros · 5 table cells · 1 figure (5 bars)
Machine-readable: audit-manifest-example.csv

This page lists every data number in the mini-example manuscript. No number is typed by hand; each is a named variable produced by make_results.R, which reads CBS open data. Click any row to see the value, its source, and where it appears in the manuscript.

Inline macros

4 macros used in manuscript.tex via \input{tables/results}.

\popYear 2022 CBS 37296ned, Perioden manuscript.tex L12, L15, L18
macro: \popYear value: 2022 source: CBS 37296ned, column Perioden sub("JJ00", "", raw$Perioden) script: make_results.R csv: results.csv cited 3 time(s) in prose: manuscript.tex L12: The total population of the Netherlands in \popYear{} was \popTotal{} ... manuscript.tex L15: \caption{Population by age group, \popYear{}.} manuscript.tex L18: \caption{Population by age group, \popYear{}. Source: CBS StatLine ...}
\popTotal 17,590,672 CBS 37296ned, TotaleBevolking_1 manuscript.tex L12
macro: \popTotal value: 17,590,672 (raw: 17590672) source: CBS 37296ned, column TotaleBevolking_1 df$TotaleBevolking_1 script: make_results.R csv: results.csv, row 1 cited 1 time(s) in prose: manuscript.tex L12: The total population of the Netherlands in \popYear{} was \popTotal{} ...
\popUnder 3,737,817 CBS 37296ned, JongerDan20Jaar_10 manuscript.tex L14
macro: \popUnder value: 3,737,817 (raw: 3737817) source: CBS 37296ned, column JongerDan20Jaar_10 df$JongerDan20Jaar_10 script: make_results.R csv: results.csv, row 2 cited 1 time(s) in prose: manuscript.tex L14: Of these, \popUnder{} were under~20 and \popSenior{} were 65 or older.
\popSenior 3,525,453 CBS 37296ned, k_65Tot80Jaar_13 + k_80JaarOfOuder_14 manuscript.tex L15
macro: \popSenior value: 3,525,453 (raw: 3525453) source: CBS 37296ned k_65Tot80Jaar_13 (2672346) + k_80JaarOfOuder_14 (853107) derived: two age bands summed script: make_results.R csv: results.csv, row 3 cited 1 time(s) in prose: manuscript.tex L15: Of these, \popUnder{} were under~20 and \popSenior{} were 65 or older.

Table cells

5 rows in tab_population.tex, each tracing back to a CBS column. Data also in tab_population.csv.

Under 20 3,737,817 JongerDan20Jaar_10
step 1 display 3,737,817 fmt(3737817) step 2 extract 3737817 df$JongerDan20Jaar_10 step 3 fetch 3737817 cbs_get_data("37296ned") step 4 raw_column 3737817 JongerDan20Jaar_10 CBS 37296ned
20–40 4,487,841 k_20Tot40Jaar_11
step 1 display 4,487,841 fmt(4487841) step 2 extract 4487841 df$k_20Tot40Jaar_11 step 3 fetch 4487841 cbs_get_data("37296ned") step 4 raw_column 4487841 k_20Tot40Jaar_11 CBS 37296ned
40–65 5,839,561 k_40Tot65Jaar_12
step 1 display 5,839,561 fmt(5839561) step 2 extract 5839561 df$k_40Tot65Jaar_12 step 3 fetch 5839561 cbs_get_data("37296ned") step 4 raw_column 5839561 k_40Tot65Jaar_12 CBS 37296ned
65–80 2,672,346 k_65Tot80Jaar_13
step 1 display 2,672,346 fmt(2672346) step 2 extract 2672346 df$k_65Tot80Jaar_13 step 3 fetch 2672346 cbs_get_data("37296ned") step 4 raw_column 2672346 k_65Tot80Jaar_13 CBS 37296ned
80+ 853,107 k_80JaarOfOuder_14
step 1 display 853,107 fmt(853107) step 2 extract 853107 df$k_80JaarOfOuder_14 step 3 fetch 853107 cbs_get_data("37296ned") step 4 raw_column 853107 k_80JaarOfOuder_14 CBS 37296ned

Figures

1 figure with companion CSV data file.

fig_population.csv 5 rows × 2 cols (age_group, population) make_results.R
file: figures/fig_population.csv figure: figures/fig_population.pdf script: make_results.R rows: 5 columns: age_group, population first rows:
  age_group population
   Under 20    3737817
      20-40    4487841
      40-65    5839561
      65-80    2672346
        80+     853107
Each bar in the figure plots population / 1e6 (millions). The CSV records the exact values before the division.