I looking for Shapefile of a World countries having an attribute of the national currency, do you know how can I get that ?
Here is how I made the file for you:
Got tabular data with country names, currency, and currency code from github here: https://gist.github.com/HarishChaudhari/4680482#file-country-code-to-currency-code-mapping-csv
Downloaded country layer from ESRI here:https://hub.arcgis.com/datasets/a21fdb46d23e4ef896f31475217cbb08_1
Change ESRI .dbf table to .csv table, edit name fields so that they match in both tables.
Merge tables using common ID field in R, then export table as .dbf using package foreign to overwrite the orginal .dbf.
library(foreign) #input tables df.1 <- read.csv('countries.csv') df.2 <- read.csv('currency.csv') #Join tables m = merge(df.1, df.2, by="Country") #overwrite attribute table write.dbf(m, file = "Countries_WGS84.dbf")
Here is the link to the new shapefile: https://drive.google.com/drive/folders/1D9v2DDO48mCbX22ga7hrz0ot4GccAx0D?usp=sharing