-
Notifications
You must be signed in to change notification settings - Fork 1
/
funciones.qmd
58 lines (53 loc) · 1.56 KB
/
funciones.qmd
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
---
title: "Funciones"
author: "Barragán"
format: html
editor: visual
---
```{r}
my_data <- readr::read_delim(here::here("datos-crudos/EPH_usu_hog_tic_t423[1].txt"))
```
```{r}
my_data2 <- readr::read_delim(here::here("datos-crudos/EPH_usu_indiv_tic_t423[1].txt"))
```
## Nombrar AGLOMERADO
```{r}
nombrar_AGLOMERADO<- function(AGLOMERADO){
case_when(
AGLOMERADO == 02 ~ "BUENOS AIRES",
AGLOMERADO == 03 ~ "BUENOS AIRES",
AGLOMERADO == 04 ~ "LITORAL",
AGLOMERADO == 05 ~ "LITORAL",
AGLOMERADO == 06 ~ "LITORAL",
AGLOMERADO == 07 ~ "LITORAL",
AGLOMERADO == 08 ~ "LITORAL",
AGLOMERADO == 09 ~ "PATAGONIA",
AGLOMERADO == 10 ~ "CUYO",
AGLOMERADO == 12 ~ "LITORAL",
AGLOMERADO == 13 ~ "NOROESTE",
AGLOMERADO == 14 ~ "LITORAL",
AGLOMERADO == 15 ~ "LITORAL",
AGLOMERADO == 17 ~ "PATAGONIA",
AGLOMERADO == 18 ~ "NOROESTE",
AGLOMERADO == 19 ~ "NOROESTE",
AGLOMERADO == 20 ~ "PATAGONIA",
AGLOMERADO == 22 ~ "NOROESTE",
AGLOMERADO == 23 ~ "NOROESTE",
AGLOMERADO == 25 ~ "NOROESTE",
AGLOMERADO == 26 ~ "CUYO",
AGLOMERADO == 27 ~ "CUYO",
AGLOMERADO == 29 ~ "NOROESTE",
AGLOMERADO == 30 ~ "PAMPEANA",
AGLOMERADO == 31 ~ "PATAGONIA",
AGLOMERADO == 32 ~ "BUENOS AIRES",
AGLOMERADO == 33 ~ "BUENOS AIRES",
AGLOMERADO == 34 ~ "BUENOS AIRES",
AGLOMERADO == 36 ~ "CENTRO",
AGLOMERADO == 38 ~ "LITORAL",
AGLOMERADO == 91 ~ "PATAGONIA",
AGLOMERADO == 93 ~ "PATAGONIA",
TRUE ~ "No Encontrado"
)
}
```
##