Skip to content

Commit

Permalink
badge
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentarelbundock committed Nov 23, 2023
1 parent 7e18643 commit e9c66a9
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[![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)
[![](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)
<!-- 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 @@ -11,7 +11,8 @@
<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)
[![](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)
<!-- 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 @@ -11,7 +11,8 @@
<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)
[![](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)
<!-- 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 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:
Expand All @@ -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

Expand Down

0 comments on commit e9c66a9

Please sign in to comment.