Description Usage Arguments Author(s) References Examples
View source: R/convert_from_PCS1982_4l_to_PCS2003_4l.R
This function converts occupational codes of the French Professions et Categories Socioprofessionnelles from the 1982 codes into the 2003 codes
1 | convert_from_PCS1982_4l_to_PCS2003_4l(PCS1982_4l, data)
|
PCS1982_4l |
The name of the variable containing |
data |
The name of the dataset |
Julie Falcon (University of Lausanne)
Documentation on the French Professions et Categories Socioprofessionnelles (PCS) 1982 and 2003 can be found on the French National Statistic Agency, the INSEE (only in French):
For 1982: http://www.insee.fr/fr/methodes/default.asp?page=nomenclatures/pcsese/pcsese1982/pcsese1982.htm
For 2003: http://insee.fr/fr/methodes/default.asp?page=nomenclatures/pcs2003/pcs2003.htm
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #load the data
data(data_PCS1982)
#visualize the data
str(data_PCS1982)
head(data_PCS1982)
#check the variable PCS1982 needed for the conversion
table(data_PCS1982$PCS1982)
#Then, you can run the function:
data_PCS1982 <- convert_from_PCS1982_4l_to_PCS2003_4l(
PCS1982_4l=data_PCS1982$PCS1982,
data=data_PCS1982)
#Check the variables created:
names(data_PCS1982)
table(data_PCS1982$PCS2003_4l) # CSP 2003 4 digits (4 niveaux)
table(data_PCS1982$PCS2003_3l) # CSP 2003 3 digits (3 niveaux)
table(data_PCS1982$PCS2003_2l) # CSP 2003 2 digits (2 niveaux)
table(data_PCS1982$PCS2003_1l) # CSP 2003 1 digit (1 niveau)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.