-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fix broken CRAN check due to stale URL.
- Add new `nato` dataset. - Take out `how = "dstk"` functionality because the underlying API seems definitely dead now.
- Loading branch information
1 parent
a3b7489
commit bc614b0
Showing
44 changed files
with
938 additions
and
676 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
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,24 +1,22 @@ | ||
# passport 0.2.0.9000 | ||
# passport 0.2.0.9001 | ||
|
||
* Add `nato` dataset of NATO/OTAN member defense expenditures. | ||
* Remove `"dstk"` option for `parse_country()` as the Data Science Tookit API | ||
appears dead. | ||
* Refactor README and vigette to use explicit packages instead of tidyverse. | ||
|
||
# passport 0.2.0 | ||
|
||
* Add `order_countries()` to make sorting vectors of countries simpler, | ||
particularly when passed to the `limits` parameter of a ggplot2 discrete | ||
scale. | ||
|
||
* Change `country_format()` to accept a `factor` parameter along to | ||
`as_country_name()`. | ||
|
||
* Update documentation and tests to account for DSTK downtime. | ||
|
||
# passport 0.1.1 | ||
|
||
* Added a `NEWS.md` file to track changes to the package. | ||
|
||
* Added option to use geocoding web APIs to supercharge `parse_country()`. | ||
|
||
* Added `convert_country()` constructor for ggplot2 convenience. | ||
|
||
* Added essential API for converting between country names and codes. |
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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
#' NATO Member Defense Expenditures | ||
#' | ||
#' A sample dataset of NATO/OTAN member defense expenditures. | ||
#' | ||
#' @source <https://www.nato.int/cps/en/natohq/news_167080.htm> | ||
#' | ||
#' @format A data.frame of 232 rows and 14 variables. | ||
#' | ||
#' Variables: | ||
#' | ||
#' \describe{ | ||
#' \item{`country_stanag`}{Country code in NATO STANAG format} | ||
#' \item{`year`}{Year, from 2012 to 2019. 2018-2019 numbers may be estimates.} | ||
#' \item{`Defense expenditure (USD, current prices)`}{ | ||
#' Defense expenditures in US dollars, using current prices and exchange rates. | ||
#' } | ||
#' \item{`Defense expenditure (USD, 2015 prices)`}{ | ||
#' Defense expenditures in US dollars, using 2015 prices and exchange rates. | ||
#' } | ||
#' \item{`Defense expenditure (% real GDP)`}{ | ||
#' Defense expenditure as a percentage of real gross domestic product. | ||
#' Based on 2015 prices. | ||
#' } | ||
#' \item{`Defense expenditure annual real change (% GDP)`}{ | ||
#' Annual change in defense expenditure as a percentage of real gross | ||
#' domestic product. Based on 2015 prices. | ||
#' } | ||
#' \item{`Real GDP (2015 prices)`}{ | ||
#' Real gross domestic product in 2015 US dollars and at 2015 exchange | ||
#' rates. | ||
#' } | ||
#' \item{`GDP per capita (USD)`}{ | ||
#' Gross demestic product per capita in 2015 US dollars and at 2015 | ||
#' exchange rates. | ||
#' } | ||
#' \item{`Defense expenditure per capita (USD)`}{ | ||
#' Defense expenditure per capita in 2015 US dollars. | ||
#' } | ||
#' \item{`Military personnel`}{Number of military personnel} | ||
#' \item{`Equipment expenditure (%)`}{ | ||
#' Percent of defense expenditure spent on equipment. Includes major | ||
#' equipment expenditure and R&D devoted to major equipment. | ||
#' } | ||
#' \item{`Personnel expenditure (%)`}{ | ||
#' Percentage of defense expenditure spent on personnel. Includes both | ||
#' military and civilian expenditure and pensions. | ||
#' } | ||
#' \item{`Infrastructure expenditure (%)`}{ | ||
#' Percentage of defense expenditure spent on infrastructure. Includes | ||
#' NATO common infrastructure and national military construction. | ||
#' } | ||
#' \item{`Other expenditure (%)`}{ | ||
#' Percentage of defense expenditure spent on other categories besides | ||
#' equipment, personnel, and infrastructure. Includes operations and | ||
#' maintenance expenditure, other R&D expenditure, and other expenditure | ||
#' not otherwise captured. | ||
#' } | ||
#' } | ||
#' | ||
#' @examples | ||
#' as_country_name(nato$country_stanag, from = 'stanag') | ||
"nato" |
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
Oops, something went wrong.