Skip to contents

Retrieves information about natural areas in Colombia from the API Colombia. This function fetches only selected fields: id, areaGroupId, categoryNaturalAreaId, name, departmentId, daneCode, and landArea.

Usage

get_colombia_natural_areas()

Value

A tibble with multiple rows and the selected columns, or NULL if the API is unavailable.

Examples

# \donttest{
natural_areas <- get_colombia_natural_areas()
print(natural_areas)
#> # A tibble: 4,347 × 7
#>       id areaGroupId categoryNaturalAreaId name   departmentId daneCode landArea
#>    <int>       <int>                 <int> <chr>         <int>    <int>    <dbl>
#>  1     1           6                     7 Cueva…           18       41   4.87e3
#>  2     2           6                     7 Cueva…           18       41   1.58e1
#>  3     3           6                     7 Cueva…            9       18   5.62e0
#>  4     4           6                     7 Cueva…           11       19   1.10e3
#>  5     5           6                     7 Cueva…            9       18   1.14e3
#>  6     6           6                     7 Cueva…           18       41   4.89e3
#>  7     7           6                     7 Cueva…           11       19   1.10e3
#>  8     8           6                     7 Cueva…            9       18   1.15e3
#>  9     9           8                     2 Nukak            17       95   4.71e3
#> 10    10           8                     2 Nukak            17       95   6.46e5
#> # ℹ 4,337 more rows
# }