View source: R/expand_location_tree.R
expand_location_tree | R Documentation |
A function to add location id numbers at all administrative levels.
expand_location_tree(locations = locations)
locations |
A data frame of locations. Can be retrieved using get_locations(). |
Returns a data frame of locations associated with Go.Data instance including all location id numbers at different administrative levels.
## Not run:
url <- "https://MyGoDataServer.com/"
username <- "myemail@email.com"
password <- "mypassword"
locations <- get_locations(url=url,
username=username,
password=password)
locations_clean <- expand_location_tree(locations)
#All in one step
locations_clean <- expand_location_tree(get_locations(url,username,password))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.