search for: loadchangeprefix

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

2012 Aug 13
1
Fine Tuning Country Map
...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 <- changeGADMPrefix(theFile, fileName) theFile } ## this function creates a SpatialPolygonsDataFrame that contains all maps you specify in "fileNames". ## E.g.: ## spdf <- g...
2013 Nov 27
0
GADM Data Download
...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 <- changeGADMPrefix(theFile, fileName) theFile } ## this function creates a SpatialPolygonsDataFrame that contains all maps you specify in "fileNames". ## E.g.: ## spdf <- g...