Learn R Programming

SUMMER (version 0.2.3)

read_shape: Function to read shape files.

Description

Function to read shape files.

Usage

read_shape(filepath, regionnames, data = NULL)

Arguments

filepath

file path for .shp files

regionnames

vector of strings of final region names

data

optional country summary data, for checking

Value

A list including shape files and the adjacency matrix.

Examples

Run this code
# 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