浏览代码

Apparently ggmap needs an api key. Will look at mapquest instead

Petra Lamborn 4 年前
父节点
当前提交
80b0fe7486
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5
    0
      scratch.R

+ 5
- 0
scratch.R 查看文件

1
 # Scratch file
1
 # Scratch file
2
 library(janitor)
2
 library(janitor)
3
 library(dplyr)
3
 library(dplyr)
4
+library(ggmap)
4
 library(readr)
5
 library(readr)
5
 Geo2017 <- clean_names(read_csv("data/AllDHBsGeocoded.csv"), case = "snake") %>%
6
 Geo2017 <- clean_names(read_csv("data/AllDHBsGeocoded.csv"), case = "snake") %>%
6
     select(-facility_opening_date) %>%
7
     select(-facility_opening_date) %>%
41
 
42
 
42
 table(newFacil$facility_type_name)
43
 table(newFacil$facility_type_name)
43
 table(Geo2017$facility_type_name)
44
 table(Geo2017$facility_type_name)
45
+
46
+newcoded <- geocode(gp_new$address, 
47
+                    output = "latlona") %>% 
48
+    rename("calculated_address" = address)