Description Usage Arguments Details Value Examples
These functions return metadata associate with a point location.
1 2 3 4 5 6 7 | get_state(location, group)
get_province(location, group)
get_country(location, group)
get_coords(location, group, keep_cols = FALSE)
|
location |
character, a name of a location in the |
group |
character, the region group/set the location belongs to.
If supplied, the |
keep_cols |
logical, keep all columns with |
get_state
returns the state, province or territory of a point location.
get_country
returns the name of the country (US or Canada).
get_coords
returns the longitutde and latitude of a point location as a data frame.
a character string, or a data frame for get_coords
.
1 2 3 4 | x <- "Calgary"
get_state(x)
get_country(x)
get_coords(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.