get_siconv | R Documentation |
get_siconv()
is the package's workhorse. It downloads, cleans, and
returns one of the several datasets maintained by Plataforma +Brasil on federal
targeted transfers in Brazil. Under the hoods, the function handles GET requests,
downloads and stores intermediary files, and reads as fast as possible the data
to a tibble
format convenient for use in analysis.
get_siconv(dataset = NULL, encoding = "UTF-8", cache = TRUE, verbose = TRUE)
dataset |
A
When not specified, |
encoding |
Encoding used to read raw files. Defaults to "UTF-8", but users might need to change this option to other valid options (e.g., "latin1") if data are returned with uncommon characters. |
cache |
Should the function maintain a local copy of the data? To save
both time and SICONV's server resources, this defaults to |
verbose |
Should the function display messages and progress bar? Defaults
to |
A tibble contantaining the requested data as defined in the
dataset
argument. Use the show_schema
function to get detailed information
on available variables and information.
get_siconv()
needs an internet connection to download data in case it
does not found a cache folder with raw data from a previous request. Be aware that instability
in the Plataforma +Brasil server might produce error messagens, in which case users
should try waiting before rerunning their requests.
## Not run: df <- get_siconv(dataset = "propostas")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.