Learn R Programming

ipeadatar (version 0.2.1)

available_territories: Available Territorial Divisions

Description

Returns a list of available Brazilian territorial divisions from the Ipeadata API.

Usage

available_territories(language = c("en", "br"), label = TRUE)

Value

A data frame containing the unit type, code, name, and area (in km²) of Brazilian territorial divisions.

Arguments

language

A character string specifying the language. Available options are English ("en", default) and Brazilian Portuguese ("br").

label

Logical. If TRUE (default), variable labels are added to the output data frame using sjlabelled::set_label().