Update kpi.main.functions.R#450
Merged
michellesloan-cdc merged 1 commit intoJun 10, 2026
Merged
Conversation
correction for bad madagascar code in an epid
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## hotfix #450 +/- ##
=========================================
- Coverage 2.00% 2.00% -0.01%
=========================================
Files 38 38
Lines 15079 15080 +1
=========================================
Hits 302 302
- Misses 14777 14778 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
chadhunt2
approved these changes
Jun 10, 2026
chadhunt2
left a comment
Collaborator
There was a problem hiding this comment.
The update works as expected.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added manual code to account for a mistyped Madagascar epid in function
get_ctry_abbrev(). That function creates country abbreviations by grabbing the first 3 letters of epids. When epids are enterred incorrectly, multiple country codes are created and there is manual R code in the function to remove the incorrect country code. For this, I added the following to remove the incorrect Madagascar code:!(place.admin.0 == "MADAGASCAR" & ctry.short == "MAN")This closes issue #449.
To test, run necessary code to try to get the country codes and also try to run a function that uses it: