Title: | Argentina's Public Opinion Toolbox |
Version: | 1.0.0 |
Description: | A toolbox for working with public opinion data from Argentina. It facilitates access to microdata and the calculation of indicators of the Trust in Government Index (ICG), prepared by the Torcuato Di Tella University. Although we will try to document everything possible in English, by its very nature Spanish will be the main language. El paquete fue pensado como una caja de herramientas para el trabajo con datos de opinión pública de Argentina. El mismo facilita el acceso a los microdatos y el cálculos de indicadores del Índice de Confianza en el Gobierno (ICG), elaborado por la Universidad Torcuato Di Tella. |
License: | MIT + file LICENSE |
URL: | https://github.com/PoliticaArgentina/opinAr |
BugReports: | https://github.com/PoliticaArgentina/opinAr/issues |
Encoding: | UTF-8 |
RoxygenNote: | 7.2.3 |
Imports: | haven, janitor, rvest, glue, dplyr, purrr, stringr, magrittr, assertthat, rlang, sjPlot, gt, lubridate |
Depends: | R (≥ 3.6) |
Suggests: | rmarkdown, knitr |
VignetteBuilder: | knitr |
NeedsCompilation: | no |
Packaged: | 2024-03-02 22:53:49 UTC; UsuarioFundar |
Author: | Camila Higa [aut, cph],
Juan Pablo Ruiz Nicolini
|
Maintainer: | Juan Pablo Ruiz Nicolini <juanpabloruiznicolini@gmail.com> |
Repository: | CRAN |
Date/Publication: | 2024-03-05 11:10:02 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)
.
Computa el ICG (Compute ICG)
Description
Función para computar resultados del ICG (Function to compute ICG results)
Usage
compute_icg(data, wave = NULL, segment_by = NULL)
Arguments
data |
un tibble guardado como objeto en el enviroment luego de consultar |
wave |
es el número de ola para la que se quiere computar el ICG (number of wave to which compute the ICG). |
segment_by |
parámetro para computar el ICG segmentado por distintas variables (parameter to compute ICG segmented by different variables). |
Value
devuelve un tibble con class "tbl_df","tbl", "data.frame"
con el valor del ICG y de cada una de sus dimensiones por una o más olas y segmentado por las variables deseadas
(returns a tibble with class "tbl_df", "tbl", "data.frame"
with the value of the ICG and the dimensions for one or more waves and segmented by desired variables).
See Also
Descarga base de microdatos del ICG ((Universidad Torcuato Di Tella))
Description
Función que ...
Usage
get_icg_raw()
Details
Respecto el origen de los datos se puede consultar la documentación en
https://www.utdt.edu/ver_contenido.php?id_contenido=1351&id_item_menu=2970
.
Value
Devuelve un objeto "tbl_df" "tbl" "data.frame" con los microdatos del ICG....
opinAr
package
Description
Caja de Herramientas para el procesamiento de la base del ICG See the README on Github
Muestra libro de códigos ((Show codebook))
Description
Función para explorar la estructura de datos del ICG (Function to explore the ICG data structure)
Usage
show_codebook(data = NULL, viewer = FALSE)
Arguments
data |
un tibble guardado como objeto en el enviroment luego de consultar |
viewer |
para elegir si la tabla se ve en el visor o se imprime el tibble para ser utilizado (choose to view the table in the viewer or print the tibble to be used). |
Details
Función para obtener la tabla con el libro de códigos (Function to show the codebook table)
Value
Devuelve un objeto "tbl_df" "tbl" "data.frame" con el libro de códigos del ICG o una "sjTable" con el nombre de las variables, las etiquetas, los valores y las etiquetas de los valores (object "tbl_df" "tbl" "data.frame" with the ICG codebook or a "sjTable" with the variables' names, labels, values and value labels)
Computa el ICG (Compute ICG)
Description
Función para mostrar las olas, el mes y el año (Function to compute ICG results)
Usage
show_waves(data = NULL, viewer = FALSE)
Arguments
data |
un tibble guardado como objeto en el enviroment luego de consultar |
viewer |
para elegir si la tabla se ve en el visor o se imprime el tibble para ser utilizado (choose to view the table in the viewer or print the tibble to be used). |
Value
devuelve un tibble con class "tbl_df","tbl", "data.frame"
con el número de ola y el mes y año correspondiente
(returns a tibble with class "tbl_df", "tbl", "data.frame"
with the wave number and the corresponding month and year).