diff --git a/README.Rmd b/README.Rmd index 12d3e95..c856380 100644 --- a/README.Rmd +++ b/README.Rmd @@ -5,8 +5,9 @@ [![DOI](http://joss.theoj.org/papers/10.21105/joss.00848/status.svg)](https://doi.org/10.21105/joss.00848) + [![R build status](https://github.com/vincentarelbundock/countrycode/workflows/R-CMD-check/badge.svg)](https://github.com/vincentarelbundock/countrycode/actions) -[![Downloads](https://cranlogs.r-pkg.org/badges/ggplot2)](https://cran.rstudio.com/web/packages/countrycode/index.html) +[![](https://cranlogs.r-pkg.org/badges/countrycode)](https://cran.r-project.org/package=countrycode) `countrycode` standardizes country names, converts them into ~40 different coding schemes, and assigns region descriptors. Scroll down for more details or visit the [countrycode CRAN page](http://cran.r-project.org/web/packages/countrycode/index.html) diff --git a/README.md b/README.md index ac6d2d9..60b9049 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,10 @@ [![DOI](http://joss.theoj.org/papers/10.21105/joss.00848/status.svg)](https://doi.org/10.21105/joss.00848) + [![R build status](https://github.com/vincentarelbundock/countrycode/workflows/R-CMD-check/badge.svg)](https://github.com/vincentarelbundock/countrycode/actions) -[![Downloads](https://cranlogs.r-pkg.org/badges/ggplot2.png)](https://cran.rstudio.com/web/packages/countrycode/index.html) +[![](https://cranlogs.r-pkg.org/badges/countrycode.png)](https://cran.r-project.org/package=countrycode) `countrycode` standardizes country names, converts them into ~40 diff --git a/docs/README.md b/docs/README.md index ac6d2d9..60b9049 100644 --- a/docs/README.md +++ b/docs/README.md @@ -8,9 +8,10 @@ [![DOI](http://joss.theoj.org/papers/10.21105/joss.00848/status.svg)](https://doi.org/10.21105/joss.00848) + [![R build status](https://github.com/vincentarelbundock/countrycode/workflows/R-CMD-check/badge.svg)](https://github.com/vincentarelbundock/countrycode/actions) -[![Downloads](https://cranlogs.r-pkg.org/badges/ggplot2.png)](https://cran.rstudio.com/web/packages/countrycode/index.html) +[![](https://cranlogs.r-pkg.org/badges/countrycode.png)](https://cran.r-project.org/package=countrycode) `countrycode` standardizes country names, converts them into ~40 diff --git a/docs/vignettes/countrycode.md b/docs/vignettes/countrycode.md index a977928..75f03d6 100644 --- a/docs/vignettes/countrycode.md +++ b/docs/vignettes/countrycode.md @@ -65,22 +65,22 @@ df1 ``` cowcodes var1 - 1 ALG 417 - 2 ALB 135 - 3 UKG 298 - 4 CAN 132 - 5 USA 125 + 1 ALG 164 + 2 ALB 94 + 3 UKG 119 + 4 CAN 16 + 5 USA 174 ``` r df2 ``` isocodes var2 - 1 12 388 - 2 8 290 - 3 826 418 - 4 124 192 - 5 840 338 + 1 12 222 + 2 8 160 + 3 826 51 + 4 124 493 + 5 840 396 Create a common variable with the iso3c code in each data frame, merge the data, and create a country identifier: @@ -94,11 +94,11 @@ df3 ``` iso3c cowcodes var1 isocodes var2 country - 1 ALB ALB 135 8 290 Albania - 2 CAN CAN 132 124 192 Canada - 3 DZA ALG 417 12 388 Algeria - 4 GBR UKG 298 826 418 United Kingdom - 5 USA USA 125 840 338 United States + 1 ALB ALB 94 8 160 Albania + 2 CAN CAN 16 124 493 Canada + 3 DZA ALG 164 12 222 Algeria + 4 GBR UKG 119 826 51 United Kingdom + 5 USA USA 174 840 396 United States ## Flags