View source: R/get_colombia_regions.R
| get_colombia_regions | R Documentation |
Retrieves comprehensive information about Colombia's six natural regions from the API Colombia service. This function fetches data including region names, descriptions, and identifiers for all Colombian regions: Caribe, Pacífico, Orinoquía, Amazonía, Andina, and Insular.
get_colombia_regions()
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: Region identifier (integer)
name: Region name (character)
description: Detailed description of the region (character)
Requires internet connection.
API Colombia: https://api-colombia.com/api/v1/Region
GET, fromJSON, as_tibble
if (interactive()) {
get_colombia_regions()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.