From 49a34ba7f1c347a8774c5acd8c79b14321f0c91f Mon Sep 17 00:00:00 2001 From: cjyetman Date: Fri, 27 Sep 2024 17:02:40 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20vincenta?= =?UTF-8?q?relbundock/countrycode@afb025b1654b0104819e7b305b9d314e96ba5043?= =?UTF-8?q?=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vignettes/countrycode.md | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/vignettes/countrycode.md b/vignettes/countrycode.md index 7468d22..5d95c96 100644 --- a/vignettes/countrycode.md +++ b/vignettes/countrycode.md @@ -66,22 +66,22 @@ df1 ``` cowcodes var1 - 1 ALG 306 - 2 ALB 211 - 3 UKG 479 - 4 CAN 494 - 5 USA 123 + 1 ALG 14 + 2 ALB 231 + 3 UKG 286 + 4 CAN 402 + 5 USA 416 ``` r df2 ``` isocodes var2 - 1 12 270 - 2 8 131 - 3 826 130 - 4 124 356 - 5 840 218 + 1 12 41 + 2 8 66 + 3 826 494 + 4 124 364 + 5 840 437 Create a common variable with the iso3c code in each data frame, merge the data, and create a country identifier: @@ -95,11 +95,11 @@ df3 ``` iso3c cowcodes var1 isocodes var2 country - 1 ALB ALB 211 8 131 Albania - 2 CAN CAN 494 124 356 Canada - 3 DZA ALG 306 12 270 Algeria - 4 GBR UKG 479 826 130 United Kingdom - 5 USA USA 123 840 218 United States + 1 ALB ALB 231 8 66 Albania + 2 CAN CAN 402 124 364 Canada + 3 DZA ALG 14 12 41 Algeria + 4 GBR UKG 286 826 494 United Kingdom + 5 USA USA 416 840 437 United States ## Flags @@ -363,7 +363,7 @@ library(countrycode) df <- eurostat::get_eurostat("nama_10_lp_ulc") ``` - Table nama_10_lp_ulc cached at /tmp/RtmpFBCPZi/eurostat/4bd62e4c0347bec11a5d7dd2bdc9542b.rds + Table nama_10_lp_ulc cached at /tmp/RtmpL9P3Cz/eurostat/4bd62e4c0347bec11a5d7dd2bdc9542b.rds ``` r custom_match <- c(EL = 'Greece', UK = 'United Kingdom')