-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdictionnary.Rmd
64 lines (47 loc) · 1.29 KB
/
dictionnary.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
title: "LAPOP - Americas Barometer"
subtitle: "Brazil"
date: "2023"
output:
unhcrdown::html_page:
toc: true
toc_depth: 2
toc_float: true
---
https://www.vanderbilt.edu/lapop/raw-data.php
## Introduction
:::{.lead}
:::
```{r echo=FALSE, message=FALSE, warning=FALSE}
knitr::opts_chunk$set(echo = FALSE, fig.cap = TRUE, message = FALSE, warning = FALSE, fig.height = 8, fig.width = 9)
```
```{r library}
library(officedown)
library(unhcrthemes)
library(fontawesome)
library(haven)
library(dplyr)
library(scales)
library(tidyverse)
library(sjPlot)
# turn off the automatic use of showtext functionality, so that the dml function can works properly
showtext::showtext_auto(FALSE)
fulldata <- read_sav(here::here("data-raw",
"BRA_merge_2007-2023_LAPOP_AmericasBarometer_v1.0_w.sav"))
## Add variable pop to crosstab all the content...
# fulldata <- fulldata |>
# dplyr::mutate(pop = dplyr::case_when(
# r1b == 3 &
# r1b_pais_esp_cod == 513 ~ "Venezolanos",
# r1b== 1 | r1b == 2 ~ "Chilenos",
# TRUE ~ "Otros"))
#
cross <- c("comcon3xa")
crosslab <- "Opinión del vecino venezolano"
## Reference #####
# https://martinctc.github.io/blog/working-with-spss-labels-in-r/
```
```{r}
## Explore all content
fulldata |> sjPlot::view_df()
```