Skip to content
Snippets Groups Projects
Commit acfa17cf authored by Nicolas Lambert's avatar Nicolas Lambert
Browse files

oecd

parent 01111cdb
No related branches found
No related tags found
No related merge requests found
Pipeline #5560 canceled
library(sf)
geom <- st_read("geometries/TL2_final.shp")
colnames(geom)
data <- read.csv("gdppc.csv")
colnames(data)
output <- merge(x = geom, y = data, by.x = "LT2_id", by.y = "id", all.x = TRUE)
output <- output[,c("LT2_id","name","geometry")]
"LT2_id" "CNTR_ID" "CNTR_NAME" "NAME_ENGL" "ISO3_CODE" "FID" "X"
[8] "country" "name" "gdppc1995" "gdppc1996" "gdppc1997" "gdppc1998" "gdppc1999"
[15] "gdppc2000" "gdppc2001" "gdppc2002" "gdppc2003" "gdppc2004" "gdppc2005" "gdppc2006"
[22] "gdppc2007" "gdppc2008" "gdppc2009" "gdppc2010" "gdppc2011" "gdppc2012" "gdppc2013"
[29] "gdppc2014" "gdppc2015" "gdppc2016" "gdppc2017" "gdppc2018" "geometry"
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment