View source: R/get_colombia_cities.R
| get_colombia_cities | R Documentation |
Retrieves basic information about all cities in Colombia from the API Colombia. This function fetches only the city ID and name to provide a clean and concise dataset.
get_colombia_cities()
This function sends a GET request to the API Colombia service.
If the API request fails or returns an error status code,
the function returns NULL with an informative message.
A tibble with the following columns:
id: City identifier (integer)
name: City name (character)
Returns NULL if the API request fails.
Requires internet connection.
API Colombia: https://api-colombia.com/api/v1/City
GET, fromJSON, tibble
if (interactive()) {
get_colombia_cities()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.