diff --git a/data-raw/clean-clev.R b/data-raw/clean-clev.R index a6c8691..d3ca597 100644 --- a/data-raw/clean-clev.R +++ b/data-raw/clean-clev.R @@ -1,6 +1,8 @@ library(sf) library(usethis) -clev_pts <- read_sf("data-raw/clev_sls_154_core.shp") +clev_pts <- st_read("data-raw/clev_sls_154_core.shp", + quiet = TRUE, + stringsAsFactors = FALSE) usethis::use_data(clev_pts, overwrite = TRUE) diff --git a/data-raw/clean-commareas.R b/data-raw/clean-commareas.R index fa04871..f3e6a37 100644 --- a/data-raw/clean-commareas.R +++ b/data-raw/clean-commareas.R @@ -1,6 +1,8 @@ library(sf) library(usethis) -chicago_comm <- read_sf("data-raw/chicagocomm.shp") +chicago_comm <- st_read("data-raw/chicagocomm.shp", + quiet = TRUE, + stringsAsFactors = FALSE) usethis::use_data(chicago_comm, overwrite = TRUE) diff --git a/data-raw/clean-commpop.R b/data-raw/clean-commpop.R index f375f57..76d1eb7 100644 --- a/data-raw/clean-commpop.R +++ b/data-raw/clean-commpop.R @@ -1,6 +1,8 @@ library(sf) library(usethis) -commpop <- read_sf("data-raw/commpop.shp") +commpop <- st_read("data-raw/commpop.shp", + quiet = TRUE, + stringsAsFactors = FALSE) usethis::use_data(commpop, overwrite = TRUE) diff --git a/data-raw/clean-guerry.R b/data-raw/clean-guerry.R index 7bb752c..667f691 100644 --- a/data-raw/clean-guerry.R +++ b/data-raw/clean-guerry.R @@ -1,6 +1,8 @@ library(sf) library(usethis) -guerry <- read_sf("data-raw/guerry.shp") +guerry <- st_read("data-raw/guerry.shp", + quiet = TRUE, + stringsAsFactors = FALSE) usethis::use_data(guerry, overwrite = TRUE) diff --git a/data-raw/clean-ncovr.R b/data-raw/clean-ncovr.R index 1d14ccb..5c53351 100644 --- a/data-raw/clean-ncovr.R +++ b/data-raw/clean-ncovr.R @@ -1,6 +1,8 @@ library(sf) library(usethis) -ncovr <- read_sf("data-raw/NAT.shp") +ncovr <- st_read("data-raw/NAT.shp", + quiet = TRUE, + stringsAsFactors = FALSE) usethis::use_data(ncovr, overwrite = TRUE) diff --git a/data-raw/clean-nyc-sf.R b/data-raw/clean-nyc-sf.R index 4f43103..e4046b9 100644 --- a/data-raw/clean-nyc-sf.R +++ b/data-raw/clean-nyc-sf.R @@ -1,7 +1,9 @@ library(sf) library(usethis) -nyc_sf <- read_sf("data-raw/nyc.shp") +nyc_sf <- st_read("data-raw/nyc.shp", + quiet = TRUE, + stringsAsFactors = FALSE) nyc_sf <- lwgeom::st_make_valid(nyc_sf) usethis::use_data(nyc_sf, overwrite = TRUE) diff --git a/data-raw/clean-ohio-lung.R b/data-raw/clean-ohio-lung.R index 66b2c94..7e8a1b4 100644 --- a/data-raw/clean-ohio-lung.R +++ b/data-raw/clean-ohio-lung.R @@ -1,6 +1,8 @@ library(sf) library(usethis) -ohio_lung <- read_sf("data-raw/ohlung.geojson") +ohio_lung <- st_read("data-raw/ohlung.geojson", + quiet = TRUE, + stringsAsFactors = FALSE) usethis::use_data(ohio_lung, overwrite = TRUE) diff --git a/data-raw/clean-vehpts.R b/data-raw/clean-vehpts.R index 9bd6a7a..c67535e 100644 --- a/data-raw/clean-vehpts.R +++ b/data-raw/clean-vehpts.R @@ -1,6 +1,8 @@ library(sf) library(usethis) -vehicle_pts <- read_sf("data-raw/cleanvehpts.shp") +vehicle_pts <- st_read("data-raw/cleanvehpts.shp", + quiet = TRUE, + stringsAsFactors = FALSE) usethis::use_data(vehicle_pts, overwrite = TRUE) diff --git a/data/chicago_comm.rda b/data/chicago_comm.rda index 3fa6d5e..f31c412 100644 Binary files a/data/chicago_comm.rda and b/data/chicago_comm.rda differ diff --git a/data/clev_pts.rda b/data/clev_pts.rda index d49f912..6347994 100644 Binary files a/data/clev_pts.rda and b/data/clev_pts.rda differ diff --git a/data/commpop.rda b/data/commpop.rda index 0f17e75..0d44ece 100644 Binary files a/data/commpop.rda and b/data/commpop.rda differ diff --git a/data/guerry.rda b/data/guerry.rda index d1d9677..eb1d3d6 100644 Binary files a/data/guerry.rda and b/data/guerry.rda differ diff --git a/data/ncovr.rda b/data/ncovr.rda index df901e0..8abcf75 100644 Binary files a/data/ncovr.rda and b/data/ncovr.rda differ diff --git a/data/nyc_sf.rda b/data/nyc_sf.rda index 8bfc7dc..2b87c50 100644 Binary files a/data/nyc_sf.rda and b/data/nyc_sf.rda differ diff --git a/data/ohio_lung.rda b/data/ohio_lung.rda index a800980..77bc92e 100644 Binary files a/data/ohio_lung.rda and b/data/ohio_lung.rda differ diff --git a/data/vehicle_pts.rda b/data/vehicle_pts.rda index b266942..99895a2 100644 Binary files a/data/vehicle_pts.rda and b/data/vehicle_pts.rda differ