From e9c66a97a668cb884a348bfb52f5e0579c545a65 Mon Sep 17 00:00:00 2001 From: Vincent Arel-Bundock Date: Thu, 23 Nov 2023 16:45:49 -0500 Subject: [PATCH] badge --- README.Rmd | 2 +- README.md | 3 ++- docs/README.md | 3 ++- docs/vignettes/countrycode.md | 30 +++++++++++++++--------------- 4 files changed, 20 insertions(+), 18 deletions(-) diff --git a/README.Rmd b/README.Rmd index c856380..5371cb0 100644 --- a/README.Rmd +++ b/README.Rmd @@ -7,7 +7,7 @@ [![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) -[![](https://cranlogs.r-pkg.org/badges/countrycode)](https://cran.r-project.org/package=countrycode) +![CRAN downloads](http://cranlogs.r-pkg.org/badges/grand-total/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 60b9049..68331a9 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,8 @@ [![R build status](https://github.com/vincentarelbundock/countrycode/workflows/R-CMD-check/badge.svg)](https://github.com/vincentarelbundock/countrycode/actions) -[![](https://cranlogs.r-pkg.org/badges/countrycode.png)](https://cran.r-project.org/package=countrycode) +![CRAN +downloads](http://cranlogs.r-pkg.org/badges/grand-total/countrycode.png) `countrycode` standardizes country names, converts them into ~40 diff --git a/docs/README.md b/docs/README.md index 60b9049..68331a9 100644 --- a/docs/README.md +++ b/docs/README.md @@ -11,7 +11,8 @@ [![R build status](https://github.com/vincentarelbundock/countrycode/workflows/R-CMD-check/badge.svg)](https://github.com/vincentarelbundock/countrycode/actions) -[![](https://cranlogs.r-pkg.org/badges/countrycode.png)](https://cran.r-project.org/package=countrycode) +![CRAN +downloads](http://cranlogs.r-pkg.org/badges/grand-total/countrycode.png) `countrycode` standardizes country names, converts them into ~40 diff --git a/docs/vignettes/countrycode.md b/docs/vignettes/countrycode.md index 75f03d6..27922be 100644 --- a/docs/vignettes/countrycode.md +++ b/docs/vignettes/countrycode.md @@ -65,22 +65,22 @@ df1 ``` cowcodes var1 - 1 ALG 164 - 2 ALB 94 - 3 UKG 119 - 4 CAN 16 - 5 USA 174 + 1 ALG 192 + 2 ALB 380 + 3 UKG 229 + 4 CAN 219 + 5 USA 293 ``` r df2 ``` isocodes var2 - 1 12 222 - 2 8 160 - 3 826 51 - 4 124 493 - 5 840 396 + 1 12 142 + 2 8 433 + 3 826 335 + 4 124 272 + 5 840 77 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 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 + 1 ALB ALB 380 8 433 Albania + 2 CAN CAN 219 124 272 Canada + 3 DZA ALG 192 12 142 Algeria + 4 GBR UKG 229 826 335 United Kingdom + 5 USA USA 293 840 77 United States ## Flags