Description Usage Arguments Details Value Examples
Combine data helper
1 |
... |
Data sets, all need to be of class |
Gives back a single tbl_df
, with a subset of columns,
currently lon
, lat
, and address
.
This function attempts to combine, but may fail sometimes.
a tibble (a data.frame) of all the inputs combined, with attributes for original urls and paths on disk
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ## Not run:
(dat <- oa_list())
out1 <- oa_get(dat$processed[5])
out2 <- oa_get(dat$processed[35])
(alldat <- oa_combine(out1, out2))
out4 <- oa_get(dat$processed[788])
(alldat <- oa_combine(out2, out4))
if (!requireNamespace("leaflet")) {
install.packages("leaflet")
}
salem <- oa_search(country = "us", state = "or", city = "city_of_salem")
corvallis <- oa_search(country = "us", state = "or",
city = "city_of_corvallis")
(alldat <- oa_combine(oa_get(salem$url), oa_get(corvallis$url)))
library("leaflet")
leaflet(alldat[sample(seq_len(NROW(alldat)), 1000), ]) %>%
addTiles() %>%
addCircles(lat = ~lat, lng = ~lon, popup = ~address)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.