Learn R Programming

climatehealth (version 1.0.0)

load_and_process_map: Read in and format country map data

Description

: Read in a shape file, rename columns and create the adjacency matrix for spatiotemporal analysis.

Usage

load_and_process_map(
  map_path,
  region_col,
  district_col,
  geometry_col,
  output_dir = NULL
)

Value

  • 'map' The processed map

  • 'nb.map'

  • 'graph_file'

Arguments

map_path

The path to the country's geographic data (shape file "sf" data).

region_col

Character. The region column in the dataframe.

district_col

Character. The district column in the dataframe.

geometry_col

Character. The geometry column in the dataframe.

output_dir

Character. The path to output the processed adjacency (neighboring) matrix, and the map graph.