edu_to_years | R Documentation |
Turn education data to years
edu_to_years(x, levels)
edu4_to_years(x)
edu9_to_years(x)
x |
character vector |
levels |
levels returned from the edu_levels() function |
Specialized returns
edu_to_years - Alter education to years specifying number of levels
edu4_to_years - directly alter 4-level coded education to years
edu9_to_years - directly alter 9-level coded education to years
vector of integers
Other edu_functions:
edu_compile()
,
edu_compute()
,
edu_factorise()
,
edu_levels2name()
,
edu_levels()
,
edu_reduce()
edu4 <- c("3", "High school", "1", NA,
"University/University college (> 4 years)",
NA, "University/University college (< 4 years)")
edu_to_years(edu4, 4)
edu4_to_years(edu4)
edu9 <- c("7", "7", "8", NA, "Primary school (6 years)", "5", "9")
edu_to_years(edu9, 9)
edu9_to_years(edu9)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.