Learn R Programming

openadds (version 0.2.0)

oa_combine: Combine data helper

Description

Combine data helper

Usage

oa_combine(...)

Arguments

...
Data sets, all need to be of class oa

Value

a tibble (a data.frame) of all the inputs combined, with attributes for original urls and paths on disk

Details

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.

Examples

Run this code
## 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")
# }
# library("leaflet")
# leaflet(alldat) %>%
#   addTiles() %>%
#   addCircles(lat = ~lat, lng = ~lon, popup = ~address)
# ## End(Not run)

Run the code above in your browser using DataLab