View source: R/get_planning_names.R
get_planning_names | R Documentation |
This function is a wrapper for the Names of Planning Area API. It returns the data as a tibble.
get_planning_names(token, year = NULL)
token |
User's API token. This can be retrieved using |
year |
Optional, check documentation for valid options. Invalid requests will are ignored by the API. |
A tibble with 2 columns:
Planning area id
Planning area name
# returns tibble ## Not run: get_planning_names(token) ## Not run: get_planning_names(token, 2008) # error: output is NULL, warning message shows status code ## Not run: get_planning_names("invalid_token")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.