Skip to content

Update functions for rates#14

Merged
rwbuie merged 12 commits intodevfrom
update_for_rates
Mar 17, 2025
Merged

Update functions for rates#14
rwbuie merged 12 commits intodevfrom
update_for_rates

Conversation

@dcolombara
Copy link
Copy Markdown
Contributor

  • Improved documentation with detailed Roxygen headers
  • Fixed logic error for handling NA/missing cat2_group values
  • Replaced tidyr::crossing with data.table for better performance
  • Added input validation with helpful error messages
  • Implemented progressr tracking across functions
  • Renamed proto_ prefix files to indicate production-ready status
  • Harmonized catnum/catgroup/catvarname usage across functions
  • Produced 2023 adolescent birth rate and infant mortality rates as a test
  • Passed devtools::check()

dcolombara and others added 12 commits March 6, 2025 16:24
 - new validations
 - built in more tweaks for race3 headaches
 - dropped dependency on tidyr::crossing
 - progress meter
 - better documentation / comments
 - improved roxygen2 header
 - simplified / tidier code, but same fundamental logic / structure
 - file is now called chi_generate_instructions_pop
* Improved documentation with detailed Roxygen comments
* Added input validation with helpful error messages
* Clearer section comments
* Replaced tidyr::crossing with data.table
* progressr progress tracking
* Standardized variable naming
* Improved work with categorical variables and crosswalks
 - previous logic for dropping when cat2_group
   was NA / 'NA' and cat1 group NOT NA / 'NA'
   was flawed
 - just rename because now fully functional
 - changed references to 'key' column to 'mykey'
   because `key` is reserved (or maybe should
   be reserved) by data.table
 - drop proto prefix because fully documented & updated
 - now use `catnum`, `catgroup`, and `catvarname` in a standard way across functions
@rwbuie rwbuie merged commit 84ff6be into dev Mar 17, 2025
@rwbuie rwbuie deleted the update_for_rates branch March 17, 2025 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants