Title: | Data from Access to Information Law |
Version: | 1.5.2 |
Description: | Downloads the public data available from the Brazilian Access to Information Law and and performs a search on information requests and appeals made since 2015. |
License: | MIT + file LICENSE |
Encoding: | UTF-8 |
RoxygenNote: | 7.2.1 |
Imports: | deflateBR, dplyr, janitor, lubridate, magrittr, RCurl, readr, stopwords, stringr, tidytext |
Suggests: | testthat (≥ 3.0.0) |
Config/testthat/edition: | 3 |
Depends: | R (≥ 2.10) |
NeedsCompilation: | no |
Packaged: | 2023-03-21 00:40:44 UTC; igorl |
Author: | Igor Laltuf |
Maintainer: | Igor Laltuf <igorlaltuf@gmail.com> |
Repository: | CRAN |
Date/Publication: | 2023-03-21 08:50:09 UTC |
Pipe operator
Description
See magrittr::%>%
for details.
Usage
lhs %>% rhs
Arguments
lhs |
A value or the magrittr placeholder. |
rhs |
A function call using the magrittr semantics. |
Value
The result of calling rhs(lhs)
.
Queries the appeals made through the Brazilian Right to Information Law
Description
Downloads data for the selected years, apply a filter and return it in the form of a dataframe.
Usage
appeals(year = "all", agency = "all", search = "all", answer = F)
Arguments
year |
selects the years which data will be downloaded. integer. |
agency |
selects the public agency to be searched. see the available agencies in agencies_initials. character. |
search |
selects the keyword to be searched. character. |
answer |
if true, fetches the content of the search argument in the appeals responses. boolean. |
Value
a dataframe with appeals containing the keyword
Examples
## Not run: appeals(search = 'PAC')
Queries presidential expenses with the corporate card
Description
Downloads data from 2002 to 2022 and return it in the form of a dataframe. Deflated values refer to values in November 2022.
Usage
corporateCardExpenses()
Value
a dataframe with the data from 2002 to 2022.
Examples
## Not run: df <- corporateCardExpenses()
Queries the requests made through the Brazilian Right to Information Law
Description
Downloads data for the selected years, apply a filter and return it in the form of a dataframe.
Usage
requests(year = "all", agency = "all", search = "all", answer = F)
Arguments
year |
selects the years which data will be downloaded. integer. |
agency |
selects the public agency to be searched. see the available agencies in agencies_initials. character. |
search |
selects the keyword to be searched. character. |
answer |
if true, fetches the content of the search argument in the request responses. boolean. |
Value
a dataframe with requests containing the keyword
Examples
## Not run: requests(search = 'PAC')