collapse_PCS2003_3l: The collapsing of the French Professions et Categories...

Description Usage Arguments Author(s) References Examples

Description

This function collapses the French Professions et Categories Socioprofessionnelles (PCS 2003) from 3 levels (niveau 3) into 1 level and 2 levels (niveaux 1 and 2)

Usage

1

Arguments

PCS2003_3l

The name of the variable containing the French PCS 2003 coded on 3 levels

data

The name of the dataset

Author(s)

Julie Falcon (University of Lausanne)

References

Documentation on the French Professions et Categories Socioprofessionnelles (PCS) 2003 can be found on the French National Statistic Agency, the INSEE (in French only):

http://insee.fr/fr/methodes/default.asp?page=nomenclatures/pcs2003/pcs2003.htm

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
#load the data
data(data_PCS2003_3l)

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

#check the variable PCS2003_3l needed for the conversion
table(data_PCS2003_3l$codes_3_level)

#Then, you can run the function:
data_PCS2003_3l <- collapse_PCS2003_3l(
				   PCS2003_3l=data_PCS2003_3l$codes_3_level,
				   data=data_PCS2003_3l)

#Two variables corresponding each to one different level of collapsing were created:
names(data_PCS2003_3l)
table(data_PCS2003_3l$PCS2003_2l) #CSP 2003 on 2 levels
table(data_PCS2003_3l$PCS2003_1l) #CSP 2003 on 1 level


Search within the SocialPosition package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.