This repository was archived by the owner on Dec 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.Rhistory
52 lines (52 loc) · 1.92 KB
/
.Rhistory
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
library(dplyr)
library(here)
library(dplyr)
df <- read_csv("spatialData_v4/STL_BARRIERS_All_04072018.csv")
library(readr)
df <- read_csv("spatialData_v4/STL_BARRIERS_All_04072018.csv")
df %>%
rename(long = X) %>%
rename(lat = Y) %>%
select(everything(), long, lat) -> df_clean
df %>%
rename(long = X) %>%
rename(lat = Y) %>%
select(BarrierID, Status, LastUpdate, Type, BarrierCk, CheckType,
BarrierCk2, CheckType2, Descrip, long, lat) -> df_clean
write_csv(df_clean, "spatialData_v4/STL_BARRIERS_All_04072018_clean.csv")
library(dplyr)
library(readr)
df <- read_csv("spatialData_v4/STL_BARRIERS_All_04072018.csv")
df %>%
rename(long = X) %>%
rename(lat = Y) %>%
select(BarrierID, Status, LastUpdate, Type, BarrierCk, CheckType,
BarrierCk2, CheckType2, Descrip, long, lat) -> allBarriers
write_csv(allBarriers, "spatialData_v4/STL_BARRIERS_All_04072018_clean.csv")
save(allBarriers, file = "spatialData_v4/allBarriers.rda")
library(dplyr)
library(readr)
df <- read_csv("spatialData_v5/STL_BARRIERS_All_09212018.csv")
df %>%
rename(long = X) %>%
rename(lat = Y) %>%
select(BarrierID, Status, LastUpdate, Type, BarrierCk, CheckType,
BarrierCk2, CheckType2, Descrip, long, lat) -> allBarriers
df <- read_csv("spatialData_v5/STL_BARRIERS_All_09212018.csv")
df %>%
rename(long = X) %>%
rename(lat = Y) %>%
select(BarrierID, Status, LastUpdate, Type, BarrierCk, CheckType,
BarrierCk2, CheckType2, Descrip, long, lat) -> allBarriers
write_csv(allBarriers, "spatialData_v5/STL_BARRIERS_All_09212018_clean.csv")
save(allBarriers, file = "spatialData_v5/allBarriers.rda")
library(dplyr)
library(readr)
df <- read_csv("spatialData_v5/STL_BARRIERS_All_09212018.csv")
df %>%
rename(long = X) %>%
rename(lat = Y) %>%
select(BarrierID, Status, LastUpdate, Type, BarrierCk, CheckType,
BarrierCk2, CheckType2, Descrip, long, lat) -> allBarriers
write_csv(allBarriers, "spatialData_v5/STL_BARRIERS_All_09212018_clean.csv")
save(allBarriers, file = "spatialData_v5/allBarriers.rda")