R/maps.r

Defines functions FortifyShapeFile

Documented in FortifyShapeFile

#' Reads in shapefile and fortifies it
#' @param file Shapefile location
#' @param region Name of the variable to fortify on
#' @export FortifyShapeFile
FortifyShapeFile <- function(file, region) {
  map <- maptools::readShapeSpatial(file)
  fortifiedMap <- broom::tidy(map, region = region)
  return(fortifiedMap)
}
raubreywhite/fhi documentation built on Jan. 5, 2020, 2:54 p.m.