Skip to content

Commit

Permalink
badges
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentarelbundock committed Nov 23, 2023
1 parent ebe542e commit 7e18643
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 18 deletions.
3 changes: 2 additions & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@

<!-- badges: start -->
[![DOI](http://joss.theoj.org/papers/10.21105/joss.00848/status.svg)](https://doi.org/10.21105/joss.00848)
<a href = "https://vincentarelbundock.github.io/countrycode" target = "_blank"><img src="https://img.shields.io/static/v1?label=Website&message=Visit&color=blue"></a>
[![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)
<!-- badges: end -->

`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)
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
<!-- badges: start -->

[![DOI](http://joss.theoj.org/papers/10.21105/joss.00848/status.svg)](https://doi.org/10.21105/joss.00848)
<a href = "https://vincentarelbundock.github.io/countrycode" target = "_blank"><img src="https://img.shields.io/static/v1?label=Website&message=Visit&color=blue"></a>
[![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)
<!-- badges: end -->

`countrycode` standardizes country names, converts them into ~40
Expand Down
3 changes: 2 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
<!-- badges: start -->

[![DOI](http://joss.theoj.org/papers/10.21105/joss.00848/status.svg)](https://doi.org/10.21105/joss.00848)
<a href = "https://vincentarelbundock.github.io/countrycode" target = "_blank"><img src="https://img.shields.io/static/v1?label=Website&message=Visit&color=blue"></a>
[![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)
<!-- badges: end -->

`countrycode` standardizes country names, converts them into ~40
Expand Down
30 changes: 15 additions & 15 deletions docs/vignettes/countrycode.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

Expand Down

0 comments on commit 7e18643

Please sign in to comment.