fix(api): correct coverage advice and drop dead vignette links (#78, #79)
Mirror to GitHub / mirror (push) Successful in 5s
R-CMD-check / check (push) Successful in 3m51s

The "Reading coverage" sections of cog_peer_compare() and
cog_geographic_rollup() recommended comparing a census year with a sample
year. The published corpus shows those years collect different governments,
so they now give the vignette's advice: compare census years with each other,
or the same governments across years.

The FY2022 Georgia example called the year complete and the 174-city gap
"overwhelmingly" sheriff contracting, "not non-response". The counters show
32 cities not collected and 142 collected with no Police rows, and nothing
measures how many of the 142 contract. The reference pages and the vignette
now say that.

cog_find_peers() and cog_gov_search() pointed at vignette('coverage-scope'),
which does not exist. Both now state the scope, with tests.

Closes #78
Closes #79

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jaredandClaude Opus 5.5 committed 2026-11-04 12:26:22 -05:00
1 parent 077fe5f99d
commit c363e19b2f
8 files changed
+60 -34

No files matched your search

+3 -3
View File
@@ -215,9 +215,9 @@ attr(police_2022, "provenance")$coverage
On the published corpus, as of its 2026-10-26 build, the chunk returns 567 expected,
535 collected and 393 reporting. The 174 cities without Police rows split into 32
that Census did not collect and 142 that were collected and have no Police rows. The
reference pages attribute most of the gap to cities that contract policing to the
county sheriff, and the counters place 142 of the 174 in the second group.
that Census did not collect and 142 that were collected and have no Police rows.
Contracting policing to the county sheriff is one reason a city lands in the second
group; the counters do not say how many of the 142 do.
# Peer comparisons count peers only