tbl <- person_record |> generate_frequency(sex)
# Whole-table footer, left-aligned (default)
tbl |> add_footnote("Source: National Survey 2023.")
# Right-aligned footer note
tbl |> add_footnote("Weighted estimates.", placement = "right")
# Footnote anchored to a specific column header (HTML/PDF)
tbl |> add_footnote("Unweighted count.", locations = "frequency")
Run the code above in your browser using DataLab