Skip to content

Commit

Permalink
Remove tibble class, leave stringsAsFactors = FALSE (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
Angela Li committed Oct 30, 2019
1 parent b7db283 commit 0ec9c3b
Show file tree
Hide file tree
Showing 16 changed files with 24 additions and 8 deletions.
4 changes: 3 additions & 1 deletion data-raw/clean-clev.R
Original file line number Diff line number Diff line change
@@ -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)
4 changes: 3 additions & 1 deletion data-raw/clean-commareas.R
Original file line number Diff line number Diff line change
@@ -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)
4 changes: 3 additions & 1 deletion data-raw/clean-commpop.R
Original file line number Diff line number Diff line change
@@ -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)
4 changes: 3 additions & 1 deletion data-raw/clean-guerry.R
Original file line number Diff line number Diff line change
@@ -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)
4 changes: 3 additions & 1 deletion data-raw/clean-ncovr.R
Original file line number Diff line number Diff line change
@@ -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)
4 changes: 3 additions & 1 deletion data-raw/clean-nyc-sf.R
Original file line number Diff line number Diff line change
@@ -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)
4 changes: 3 additions & 1 deletion data-raw/clean-ohio-lung.R
Original file line number Diff line number Diff line change
@@ -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)
4 changes: 3 additions & 1 deletion data-raw/clean-vehpts.R
Original file line number Diff line number Diff line change
@@ -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)
Binary file modified data/chicago_comm.rda
Binary file not shown.
Binary file modified data/clev_pts.rda
Binary file not shown.
Binary file modified data/commpop.rda
Binary file not shown.
Binary file modified data/guerry.rda
Binary file not shown.
Binary file modified data/ncovr.rda
Binary file not shown.
Binary file modified data/nyc_sf.rda
Binary file not shown.
Binary file modified data/ohio_lung.rda
Binary file not shown.
Binary file modified data/vehicle_pts.rda
Binary file not shown.

0 comments on commit 0ec9c3b

Please sign in to comment.