pkgdown/extra.css Skip to contents

Retrieve state-level revenue data from the TCE-PE API.

Usage

tce_state_revenues(
  ...,
  verbose = getOption("tceper.verbose", FALSE),
  cache = TRUE,
  clean_names = TRUE
)

Arguments

...

Named query parameters passed directly to the API. Common filters: CodigoEfiscoUG, AnoReferencia.

verbose

If TRUE, prints the final API URL.

cache

If TRUE (default), returns cached results when available.

clean_names

If TRUE (default), converts column names to snake_case.

Value

A tibble.

See also

tce_params() to discover available parameters, tce_fields() to see output columns.

Other revenues: tce_budgeted_revenues(), tce_municipal_revenues()

Examples

if (FALSE) { # \dontrun{
# Not run: reaches the live TCE-PE API, which only accepts connections
# from Brazilian IP addresses (unreachable from CRAN / most CI).
tce_state_revenues(id_unidade_gestora = "510101")
} # }