Last chance! 50% off unlimited learning
Sale ends in
Function to read shape files.
read_shape(filepath, regionnames, data = NULL)
file path for .shp files
vector of strings of final region names
optional country summary data, for checking
A list including shape files and the adjacency matrix.
# NOT RUN {
my_region_names <- c("central","eastern","northern","western")
my_fp <- "myExampleFilepath/sdr_subnational_boundaries.shp"
my_map <- read_shape(filepath = my_fp, regionnames = my_region_names)
# }
Run the code above in your browser using DataLab