search for: changegadmprefix

Displaying 2 results from an estimated 2 matches for "changegadmprefix".

2012 Aug 13
1
Fine Tuning Country Map
...vel you want to have loadGADM <- function (fileName, level = 0, ...) { load(url(paste("http://gadm.org/data/rda/", fileName, "_adm", level, ".RData", sep = ""))) gadm } ## the maps objects get a prefix (like "ARG_" for Argentina) changeGADMPrefix <- function (GADM, prefix) { GADM <- spChFIDs(GADM, paste(prefix, row.names(GADM), sep = "_")) GADM } ## load file and change prefix loadChangePrefix <- function (fileName, level = 0, ...) { theFile <- loadGADM(fileName, level) theFile <- changeGADMPref...
2013 Nov 27
0
GADM Data Download
...vel you want to have loadGADM <- function (fileName, level = 0, ...) { load(url(paste("http://gadm.org/data/rda/", fileName, "_adm", level, ".RData", sep = ""))) gadm } ## the maps objects get a prefix (like "ARG_" for Argentina) changeGADMPrefix <- function (GADM, prefix) { GADM <- spChFIDs(GADM, paste(prefix, row.names(GADM), sep = "_")) GADM } ## load file and change prefix loadChangePrefix <- function (fileName, level = 0, ...) { theFile <- loadGADM(fileName, level) theFile <- changeGADMPref...