Description Usage Arguments Value Author(s) See Also Examples
mutate_geocode
geocodes a data frame and appends the new
information to the data frame provided.
1 | mutate_geocode(data, location, ...)
|
data |
a data frame |
location |
a character string specifying a location of interest (e.g. "Baylor University") |
... |
arguments to pass to |
data with geocoded information appended as columns
David Kahle david.kahle@gmail.com
1 2 3 4 5 6 7 8 9 10 11 12 13 | df <- data.frame(
address = c("1600 Pennsylvania Avenue, Washington DC", "", "houston texas"),
stringsAsFactors = FALSE
)
## Not run: # Server response can be slow; this cuts down check time.
mutate_geocode(df, address)
library(dplyr)
df %>% mutate_geocode(address)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.