docs: explain survey years where vignettes compare governments (#77)
NEWS.md gains a development-version entry for fiscal_period, cog_fiscal_periods() and cog_survey_year(). total-spending.Rmd shows that its Florida rollup mixes a June 30 state (July 2019 to June 2020) with two September 30 counties (October 2018 to September 2019) under the same 2020. coverage-counters.Rmd counts the FY2012 fiscal year ends of Georgia cities (273 December 31, 196 June 30, 36 September 30) and what months they cover. population-denominators.Rmd notes that each cohort year is a survey year. The first two chunks run against the bundled fixture. Refs #77 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qbe6u2h83wgZdTgJgE4Xh5
This commit is contained in:
4 files changed
+77
No files matched your search
@@ -59,6 +59,12 @@ out <- purrr::map_dfr(years, function(y) {
|
||||
|
||||
Each row in `out` has `cohort_year == year`, so a faceted plot shows cohort drift directly.
|
||||
|
||||
Each `year` is a Census survey year, which covers different months for different
|
||||
governments: a city with a June 30 fiscal year end and one with a December 31 year end
|
||||
report figures six months apart under the same `year`. Pass `fiscal_period = TRUE` to
|
||||
`cog_spending()` to get each row's `period_start` and `period_end`, and see
|
||||
`?cog_fiscal_periods` for the rule.
|
||||
|
||||
# Future direction
|
||||
|
||||
`pop_source` is a column on the result, not a fixed value, so adding a new denominator (PEP from tidycensus, decennial counts, ACS time-series) is a join change rather than an API change. A future release may add `cog_spending(..., pop_source = "pep")` for users who need a single externally-audited series.
|
||||
Reference in new issue
Block a user