Geocoding of publicly-available GP practice location in New Zealand

GeoProcessing.R 355B

123456789
  1. td <- tempdir()
  2. unzip("statsnzdistrict-health-board-2015-SHP.zip", exdir = td)
  3. dhb2015 <- readOGR(td, layer="district-health-board-2015")
  4. dhbsub <- subset(dhb2015, dhb2015$DHB2015_Co != "99")
  5. #dhbsub <- gSimplify(dhbsub, tol = 0.01, topologyPreserve = TRUE)
  6. #
  7. #saveRDS(dhbsub, "MedicalCentres/dhb2015.rds")
  8. saveRDS(dhb2015, "MedicalCentres/dhb2015.rds")