Skip to content

Commit

Permalink
Deploying to gh-pages from @ 7d3b82d 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentarelbundock committed Mar 22, 2024
1 parent 83035d4 commit 23ec31a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 19 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


<p align="center">
<img src="https://user-images.githubusercontent.com/987057/167296405-e7798ac8-03e7-444e-acaf-d99fc42d1c9e.png" align="right" alt="" width="125" />
<img src="https://user-images.githubusercontent.com/987058/167296405-e7798ac8-03e7-444e-acaf-d99fc42d1c9e.png" align="right" alt="" width="125" />
</p>

<br>
Expand All @@ -12,8 +12,7 @@
<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)
![CRAN
downloads](http://cranlogs.r-pkg.org/badges/grand-total/countrycode.png)
<a href = "https://vincentarelbundock.github.io/countrycode" target = "_blank"><img src="http://cranlogs.r-pkg.org/badges/grand-total/countrycode"></a>
<!-- badges: end -->

`countrycode` standardizes country names, converts them into ~40
Expand Down
Binary file modified freeze.rds
Binary file not shown.
32 changes: 16 additions & 16 deletions vignettes/countrycode.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,22 +66,22 @@ df1
```

cowcodes var1
1 ALG 100
2 ALB 369
3 UKG 23
4 CAN 148
5 USA 451
1 ALG 243
2 ALB 201
3 UKG 483
4 CAN 140
5 USA 293

``` r
df2
```

isocodes var2
1 12 367
2 8 295
3 826 26
4 124 301
5 840 127
1 12 500
2 8 430
3 826 460
4 124 248
5 840 374

Create a common variable with the iso3c code in each data frame, merge
the data, and create a country identifier:
Expand All @@ -95,11 +95,11 @@ df3
```

iso3c cowcodes var1 isocodes var2 country
1 ALB ALB 369 8 295 Albania
2 CAN CAN 148 124 301 Canada
3 DZA ALG 100 12 367 Algeria
4 GBR UKG 23 826 26 United Kingdom
5 USA USA 451 840 127 United States
1 ALB ALB 201 8 430 Albania
2 CAN CAN 140 124 248 Canada
3 DZA ALG 243 12 500 Algeria
4 GBR UKG 483 826 460 United Kingdom
5 USA USA 293 840 374 United States

## Flags

Expand Down Expand Up @@ -363,7 +363,7 @@ library(countrycode)
df <- eurostat::get_eurostat("nama_10_lp_ulc")
```

Table nama_10_lp_ulc cached at /tmp/RtmpQMY6IG/eurostat/998f230a43c5894fa5e90cdfb04550d4.rds
Table nama_10_lp_ulc cached at /tmp/RtmpLNQzaD/eurostat/998f230a43c5894fa5e90cdfb04550d4.rds

``` r
custom_match <- c(EL = 'Greece', UK = 'United Kingdom')
Expand Down

0 comments on commit 23ec31a

Please sign in to comment.