recode: Recode occupational and stratification schemas

Description Usage Arguments Details Value Examples

View source: R/recode_schema.R

Description

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

Usage

1
2
     recode(data, informat="isco88", outformat="egp", detail=0, labels=FALSE)
     

Arguments

data

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

informat

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

outformat

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.

Details

The data argument can be onedimensional (a single value or vector of values).

Possible informat values are "isco88".

Possible outformat values are "isei", "siops", "esec" and "egp".

Value

A vector of the same length as the

Examples

1
2
3
4
## Recode a vector of ISCO88 occupation unit group indicators to 
## the International Socio-economic Index of Occupational Status (ISEI).
isco <- c(1200, 3131, 9110)
recode(isco, informat="isco88", outformat="isei")

strat documentation built on May 2, 2019, 4:59 p.m.

Related to recode in strat...