Browse Source

Load from rds instead of csv

Petra Lamborn 4 years ago
parent
commit
16b1c71b29
2 changed files with 1 additions and 7 deletions
  1. BIN
      MedicalCentres/Geo2017.rds
  2. 1
    7
      MedicalCentres/app.R

BIN
MedicalCentres/Geo2017.rds View File


+ 1
- 7
MedicalCentres/app.R View File

@@ -1,14 +1,8 @@
1 1
 library(shiny)
2 2
 library(leaflet)
3
-library(janitor)
4 3
 library(dplyr)
5
-library(readr)
6 4
 
7
-Geo2017 <- clean_names(read_csv("../data/AllDHBsGeocoded.csv"), case = "snake") %>%
8
-    select(-facility_opening_date) %>%
9
-    mutate(dhb_name = ifelse(is.na(dhb_name), "Missing", dhb_name),
10
-           health_facility_code = ifelse(is.na(health_facility_code),
11
-                                         "Missing", health_facility_code))
5
+Geo2017 <- readRDS("Geo2017.rds")
12 6
 
13 7
 ui <- fillPage(
14 8
     leafletOutput(outputId = "medmap", height = "100%")