This function allows you to calculate the housing conditions

housing_conditions(data = ech::toy_ech_2018, c2 = "c2", c3 = "c3", c4 = "c4")

Arguments

data

data.frame

c2

Variable name of predominant material on external walls

c3

Variable name of predominant roofing material

c4

Variable name of predominant flooring material

Value

data.frame

Details

Disclaimer: This script is not an official INE product. Aviso: El script no es un producto oficial de INE.

Examples

toy_ech_2018 <- housing_conditions(data = ech::toy_ech_2018)
#> A variable has been created: 
#>  	 housing_conditions (situacion estructural de la vivienda)