Change educational coded levels to names of the levels

edu_levels2name(x, levels)

edu4_levels2name(x)

edu9_levels2name(x)

Arguments

x

vector containing levels

levels

numeric of number of levels (4 or 10)

Value

character vector

Details

Specialized returns

  • edu_levels2name - transforms levels to names for levels specified

  • edu4_levels2name - transforms levels to names for 4-levels scheme

  • edu9_levels2name - transforms levels to names for 9-levels scheme

See also

Examples

edu4 <- c(9, 9, 16, 19)
edu_levels2name(edu4, 4)
#> [1] "Primary school (9 years)"                 
#> [2] "Primary school (9 years)"                 
#> [3] "University/University college (< 4 years)"
#> [4] "University/University college (> 4 years)"
# does the same as
edu4_levels2name(edu4)
#> [1] "Primary school (9 years)"                 
#> [2] "Primary school (9 years)"                 
#> [3] "University/University college (< 4 years)"
#> [4] "University/University college (> 4 years)"

edu9 <- c(0, 6, 21, 16)
edu_levels2name(edu9, 9)
#> [1] "Pre-school/No schooling"                                    
#> [2] "Primary school (6 years)"                                   
#> [3] "Ph.D. (21 years)"                                           
#> [4] "Lower level University/University college degree (16 years)"
# does the same as
edu9_levels2name(edu9)
#> [1] "Pre-school/No schooling"                                    
#> [2] "Primary school (6 years)"                                   
#> [3] "Ph.D. (21 years)"                                           
#> [4] "Lower level University/University college degree (16 years)"