-shape <- readOGR(dsn = "data/", layer = "CurrentActiveSchoolsSemester12017_PublicDET_014")
-# Suppress warning about no method existing for SpatialPointsDataframe - TODO use library sf
-shape.df <- suppressWarnings(tidy(shape))
-shape.df$latitude <- as.numeric(as.character(shape.df$latitude))
-shape.df$longitude <- as.numeric(as.character(shape.df$longitude))
-shape.df$totalschoo <- as.numeric(as.character(shape.df$totalschoo))
+#shape <- readOGR(dsn = "data/", layer = "CurrentActiveSchoolsSemester12017_PublicDET_014")
+shape.df <- st_read(dsn = "data/", layer = "CurrentActiveSchoolsSemester12017_PublicDET_014", stringsAsFactors = FALSE)
+shape.df$latitude <- as.numeric(shape.df$latitude)
+shape.df$longitude <- as.numeric(shape.df$longitude)
+shape.df$totalschoo <- as.numeric(shape.df$totalschoo)