Description Usage Arguments Value Examples
View source: R/rpubmed_locations.R
Function to get coordinates from a supplied address If no match is found, it recursively calls itself on the address minus the first line of the address
1 | geocode_address(address, depth = 3)
|
address |
string |
depth |
depth integer recursion depth for attempting to get coordinates. If the full address fails to get a hit, the function is called again with the first line of the address removed. The process is repeated depth times before returning NAs |
vector of address, lat, long
1 2 3 4 5 | ## Not run:
x <- "Rothamsted Research, Harpenden, Herts AL5 2JQ, UK."
geocode_address(x)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.