enaho_clean: Clean datasets from ENAHO

View source: R/inei_enaho.R

enaho_cleanR Documentation

Clean datasets from ENAHO

Description

Create a tidy data from ENAHO

Usage

enaho_clean(.enaho_data)

Arguments

.enaho_data

ENAHO database

Details

Clean data from ENAHO and prepare for a panel data

Value

Standard data cleaning

Author(s)

Jhon Flores Rojas

Examples

# library(tidyverse)
library(PeruData)
library(haven)

years <- c("2010", "2019")
mod <- c("01", "03", "05", "85")
# inei_enaho(mod, years) #not run example


#enaho_2018 <- haven::read_dta(here::here("enaho/modulo 01/enaho_2019.dta"))
#enaho_2018 |>
#    enaho_clean()

TJhon/PeruData documentation built on March 30, 2022, 8:26 p.m.