Comments (2)
Hola @enadianet ,
Se me ocurren dos opciones. una es usar el comando case_when
https://dplyr.tidyverse.org/reference/case_when.html
por ejemplo
df %>%
mutate(calidad_vivienda = case_when(IV3 == 1 & V4 == 1 & IV5 = 1 ~ "suficiente",
IV3 == 2 & V4 == 1 & IV5 = 1 ~ "insuficiente",
....
Si hay muchas combinaciones eso puede ser medio tedioso, y quizas por reproducibilidad prefieras tener un archivo aparte (un excel) donde haces la codificacion, y luego con un left_join agregar las categorías nuevas
Saludos y espero que sirva
from eph.
Excelente Diego, voy a probar con esa primera opción.
Muchas gracias!!
from eph.
Related Issues (20)
- Mejorar mensajes de error en función `calculate_tabulates()`
- Armar paneles en la EPH HOT 1
- Problemas con AGLOMERADO HOT 1
- Canastas 2S 2022 HOT 1
- pkgcheck results - master HOT 1
- pkgcheck results - master
- pkgcheck results - master HOT 1
- pkgcheck results - master HOT 1
- get_microdata_internal() not working on v 0.6.0 HOT 2
- update reference
- pkgcheck results - master
- pkgcheck results - master HOT 1
- pkgcheck results - master HOT 11
- pkgcheck results - master
- pkgcheck results - master
- Nueva función para consultar nombre de variables y de sus categorías
- Label de región patagónica HOT 2
- Canastas regionales HOT 3
- pkgcheck results - master HOT 2
- pkgcheck results - master HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eph.