recode: Recode occupational and stratification schemas.

Description Usage Arguments Examples

View source: R/recode.r

Description

recode provides an uniform function for converting to and from different occupational and stratification schemas.

Usage

1
  recode(data, format = "esec", labels = FALSE)

Arguments

data

a single value, vector or dataframe containing occupational or stratification data that one wishes to recode. See Details.

format

a string indicating the output format. See Details for possible values.

detail

the level of detail in returned classfication. The default of 0 returns the most detailed form.

labels

return a factor with value labels instead of the numeric values.

Examples

1
2
isco <- c(1200, 3131, 9110)
recode(isco, format="isco88")

mhermans/strat documentation built on May 25, 2019, 10:30 p.m.