-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dcb1674
commit d5b8a13
Showing
10 changed files
with
14 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,11 +11,11 @@ Authors@R: c( | |
person("Nils", "Enevoldsen", email = "[email protected]", role = "ctb", comment = c(ORCID = "0000-0001-7195-4117")) | ||
) | ||
Description: Standardize country names, convert them into one of | ||
eleven coding schemes, convert between coding schemes, and | ||
40 different coding schemes, convert between coding schemes, and | ||
assign region descriptors. | ||
Version: 1.1.2 | ||
Version: 1.1.3 | ||
URL: https://github.com/vincentarelbundock/countrycode | ||
Date: 2020-04-22 | ||
Date: 2020-05-07 | ||
Depends: | ||
R (>= 2.10) | ||
Suggests: | ||
|
This file contains 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
This file contains 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
This file contains 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
get_dhs = function() { | ||
url = 'https://api.dhsprogram.com/rest/dhs/countries?select=DHS_CountryCode,CountryName&f=json' | ||
dhs = jsonlite::fromJSON(url)[['Data']] %>% | ||
dplyr::select(CountryName, DHS_CountryCode) %>% | ||
dplyr::select(CountryName, dhs = DHS_CountryCode) %>% | ||
dplyr::mutate(country.name.en.regex = CountryToRegex(CountryName)) %>% | ||
dplyr::select(-CountryName) %>% | ||
dplyr::filter(DHS_CountryCode != 'OS') | ||
dplyr::filter(dhs != 'OS') | ||
return(dhs) | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.