Skip to content

Commit

Permalink
Deploying to gh-pages from @ 5101980 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
cjyetman committed Sep 27, 2024
1 parent 1f159b3 commit 918fde3
Showing 1 changed file with 16 additions and 16 deletions.
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 492
2 ALB 349
3 UKG 159
4 CAN 388
5 USA 100
1 ALG 490
2 ALB 172
3 UKG 500
4 CAN 82
5 USA 310

``` r
df2
```

isocodes var2
1 12 240
2 8 407
3 826 186
4 124 356
5 840 141
1 12 457
2 8 233
3 826 417
4 124 272
5 840 13

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 349 8 407 Albania
2 CAN CAN 388 124 356 Canada
3 DZA ALG 492 12 240 Algeria
4 GBR UKG 159 826 186 United Kingdom
5 USA USA 100 840 141 United States
1 ALB ALB 172 8 233 Albania
2 CAN CAN 82 124 272 Canada
3 DZA ALG 490 12 457 Algeria
4 GBR UKG 500 826 417 United Kingdom
5 USA USA 310 840 13 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/RtmpbH9YfW/eurostat/4bd62e4c0347bec11a5d7dd2bdc9542b.rds
Table nama_10_lp_ulc cached at /tmp/RtmpNuetY2/eurostat/4bd62e4c0347bec11a5d7dd2bdc9542b.rds

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

0 comments on commit 918fde3

Please sign in to comment.