# NOT RUN {
# library(GADMTools)
# map <- gadm_sf_import_shp(dir="./", name = "india", level = 2,
# del = c("DCODE", "NAME3", "SDCODE"),
# renamed = c(<U+2019>ISO<U+2019> = <U+2019>COUNTRY<U+2019>,
# <U+2019>NAME_0<U+2019> = <U+2019>COUNTRY_LO<U+2019>,
# <U+2019>NAME_1<U+2019> = <U+2019>NAME1<U+2019>,
# <U+2019>NAME_2<U+2019> = <U+2019>NAME2<U+2019>),
# keepall = FALSE
# )
# map$sf$ISO <- "IND"
# map$sf$NAME_0 <- "India"
# }
Run the code above in your browser using DataLab