Learn R Programming

SocialPosition (version 1.0.1)

convert_from_ISCO08_to_ISCO88_3d: The conversion of the ISCO 2008 classification into the ISCO 1988

Description

This function converts occupational codes of the ISCO 2008 classification into the occupational codes of the ISCO 1988 classification on 3 digits

Usage

convert_from_ISCO08_to_ISCO88_3d(ISCO08, data)

Arguments

ISCO08
The name of the variable containing the ISCO 2008 codes, ideally coded on 4 digits, although the function also supportes variables coded on 3 digits, and even on 2 digits
data
The name of the dataset

References

Documentation on the ISCO 2008 and 1988 can be found on the ILO website:

Examples

Run this code
#load the data
data(data_ISCO2008)

#visualize the data
str(data_ISCO2008)
head(data_ISCO2008)

#check the variable ISCO2008 needed for the conversion
table(data_ISCO2008$ISCO2008)

#Then, you can run the function:
data_ISCO2008 <- convert_from_ISCO08_to_ISCO88_3d(
				 ISCO08=data_ISCO2008$ISCO2008,
				 data=data_ISCO2008)

#Check the created variable:
names(data_ISCO2008)
table(data_ISCO2008$ISCO88_3d)

Run the code above in your browser using DataLab