| years_of_schooling | R Documentation | 
This function allows you to calculate the years of schooling
years_of_schooling(
  data = ech::toy_ech_2018,
  e193 = "e193",
  e51_2 = "e51_2",
  e51_3 = "e51_3",
  e51_4 = "e51_4",
  e51_5 = "e51_5",
  e51_6 = "e51_6",
  e51_7 = "e51_7",
  e51_7_1 = "e51_7_1",
  e51_8 = "e51_8",
  e51_9 = "e51_9",
  e51_10 = "e51_10",
  e51_11 = "e51_11",
  max_years = 22
)
data | 
 data.frame  | 
e193 | 
 Variable name of attendance school  | 
e51_2 | 
 Variable name of years passed in primary  | 
e51_3 | 
 Variable name of years passed in special primary  | 
e51_4 | 
 Variable name of years passed in lower secondary  | 
e51_5 | 
 Variable name of years passed in upper secondary  | 
e51_6 | 
 Variable name of years passed in bachillerato tecnologico  | 
e51_7 | 
 Variable name of years passed in technical education  | 
e51_7_1 | 
 Variable name of technical education requirements  | 
e51_8 | 
 Variable name of years passed in magisterio/profesorado  | 
e51_9 | 
 Variable name of years passed in university or similar  | 
e51_10 | 
 Variable name of years passed in tertiary (non-university)  | 
e51_11 | 
 Variable name of years passed in postgrade  | 
max_years | 
 Maximum years of schooling  | 
Disclaimer: This script is not an official INE product. Aviso: El script no es un producto oficial de INE.
data.frame
Other education: 
enrolled_school(),
level_completion(),
level_education(),
organize_educ()
toy_ech_2018 <- years_of_schooling(data = ech::toy_ech_2018)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.