Description Usage Arguments Author(s) References Examples
View source: R/convert_from_PCS2003_4l_to_ISCO88_3d.R
This function converts occupational codes of the French Professions et Categories Socioprofessionnelles 2003 into the occupational codes of the ISCO 1988 classification on 3 digits
| 1 | convert_from_PCS2003_4l_to_ISCO88_3d(PCS2003_4l, data)
 | 
| PCS2003_4l | The name of the variable containing the French PCS 2003 coded on 4 levels (i.e. 3 digits followed by 1 letter, such as 226a) | 
| data | The name of the dataset | 
Julie Falcon (University of Lausanne)
Documentation on the French Professions et Categories Socioprofessionnelles (PCS) 2003 and on the ISCO 1988 can be found:
For the French PCS 2003 on the French National Statistic Agency website, the INSEE (in French): http://insee.fr/fr/methodes/default.asp?page=nomenclatures/pcs2003/pcs2003.htm
For ISCO 1988 on the ILO website: http://www.ilo.org/public/english/bureau/stat/isco/isco88/index.htm
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #load the data
data(data_PCS2003_4l)
#visualize the data
str(data_PCS2003_4l)
head(data_PCS2003_4l)
#check the variable needed for the conversion
table(data_PCS2003_4l$codes_4_level)
#Then, you can run the function:
data_PCS2003_4l <- convert_from_PCS2003_4l_to_ISCO88_3d(
				   PCS2003_4l=data_PCS2003_4l$codes_4_level, 
				   data=data_PCS2003_4l)
#Check the variable created:
names(data_PCS2003_4l)
table(data_PCS2003_4l$ISCO88_3d)
 | 
'data.frame':	1000 obs. of  1 variable:
 $ codes_4_level: Factor w/ 469 levels "111a","111b",..: 122 154 405 346 236 189 138 317 154 461 ...
  codes_4_level
1          371a
2          383c
3          632h
4          563a
5          467a
6          431f
111a 111b 111c 111d 111e 111f 121a 121b 121c 121d 121e 121f 122a 122b 122c 131a 
   2    1    1    3    2    3    2    2    1    5    1    1    2    4    4    2 
131b 131d 131e 131f 211a 211b 211d 211f 211g 211h 211j 212a 212c 212d 213a 214a 
   2    3    4    2    2    1    2    2    1    1    4    2    2    1    2    1 
214b 214c 214d 214e 215a 215b 215c 215d 216a 216b 216c 217a 217b 217c 217d 218a 
   1    3    1    2    3    1    1    1    4    2    3    2    3    2    3    3 
219a 221a 221b 222b 223b 223c 223d 223e 223f 223g 223h 224a 224b 224c 224d 225a 
   1    2    2    2    2    3    1    2    4    4    3    3    1    1    3    1 
226a 226b 226c 227a 227c 227d 231a 232a 233a 233c 233d 311a 311b 311c 311d 311e 
   2    3    1    2    4    2    1    2    3    2    3    2    3    2    3    2 
311f 312b 312d 312e 312f 312g 313a 331a 332a 333a 333b 333c 333d 333e 333f 334a 
   1    1    2    3    5    1    2    1    3    2    2    1    1    1    2    2 
335a 341a 341b 342a 342c 342d 342e 342f 342g 342h 343a 344a 344b 344c 351a 352a 
   2    3    1    4    1    2    2    3    1    3    1    2    3    3    1    1 
352b 353b 353c 354a 354b 354c 354d 354f 354g 371a 372a 372b 372c 372d 372e 372f 
   2    1    5    5    2    1    2    4    4    4    1    1    2    1    2    3 
373a 373b 373c 373d 374a 374b 374c 375a 375b 376a 376b 376c 376d 376f 376g 377a 
   4    3    3    1    2    2    4    2    2    3    1    3    2    2    1    2 
380a 381b 381c 382a 382b 382c 382d 383a 383b 383c 384b 385a 385b 385c 386a 386c 
   1    2    3    2    2    2    1    3    3    5    2    2    1    3    1    1 
386d 386e 387a 387b 387c 387d 387e 388b 388d 388e 389a 389b 389c 421b 422a 422b 
   3    2    1    4    4    3    2    1    2    2    3    3    1    4    1    2 
422c 422d 422e 423a 423b 424a 425a 431a 431b 431c 431d 431e 431f 431g 432a 432b 
   2    2    2    1    1    3    2    2    1    1    2    4    6    3    2    1 
432c 432d 433a 433c 433d 434a 434b 434c 434d 434e 434f 434g 435a 441a 441b 451a 
   2    4    1    2    1    1    1    1    4    2    2    3    1    2    1    1 
451c 451d 451e 451f 451g 451h 452a 452b 461a 461b 461c 461d 461e 462a 462c 462d 
   3    5    3    2    1    3    3    3    2    3    4    1    2    2    2    3 
463a 463b 463c 463e 464a 464b 465a 465c 466a 466b 466c 467a 467b 467d 468b 471a 
   2    1    3    1    1    4    1    2    4    2    2    4    1    2    2    3 
471b 472a 472b 472c 472d 473a 473b 473c 474a 474b 474c 475a 475b 476b 477a 477b 
   6    1    4    1    2    1    2    3    2    1    1    2    1    1    2    2 
477c 477d 478a 478b 478c 478d 479a 479b 480a 480b 481b 482a 483a 484b 485a 485b 
   4    4    3    3    1    1    2    2    2    3    1    2    4    2    1    1 
486a 486b 486c 486d 486e 487a 487b 488a 488b 521b 522a 523a 523b 523c 524a 524b 
   1    2    3    2    2    4    1    4    3    1    1    3    1    1    5    4 
524d 525a 525b 525d 526b 526e 531a 531b 531c 532b 532c 533a 533b 533c 534a 534b 
   2    2    3    2    5    2    2    3    1    3    1    1    2    2    2    2 
541a 541b 541c 541d 542b 543a 543c 543d 543e 543g 543h 544a 545a 545b 545c 545d 
   2    2    4    3    4    3    2    2    1    2    2    3    3    1    2    1 
546a 546b 546c 546d 546e 551a 552a 553a 553b 553c 554a 554b 554c 554d 554e 554g 
   1    1    2    3    1    2    2    2    4    2    2    1    2    2    3    2 
554h 554j 555a 556a 561a 561b 561e 561f 562a 563a 563b 563c 564a 564b 621a 621d 
   1    2    1    3    2    3    1    1    2    2    1    1    2    2    3    1 
621e 621f 621g 622a 622b 622c 622d 622e 622f 622g 623a 623c 623e 623f 623g 624a 
   1    1    4    1    1    3    3    4    1    4    1    2    2    2    1    2 
624b 624c 624d 624e 624f 625b 625c 625d 625e 625f 625g 625h 626a 626b 626c 627a 
   1    3    1    2    2    1    1    2    1    5    1    1    2    3    2    1 
627b 627c 627d 627e 627f 628a 628b 628c 628d 628e 628f 628g 631a 632a 632b 632c 
   4    1    1    2    2    1    2    1    3    1    3    2    1    3    2    1 
632d 632e 632f 632g 632h 632j 632k 633a 633c 633d 634a 634b 634c 634d 635a 636a 
   1    4    1    4    4    3    3    1    2    1    1    3    1    2    1    2 
636b 636c 636d 637a 637b 641b 642b 643a 644a 651a 651b 652a 652b 653a 654a 654b 
   1    3    2    3    1    3    1    2    2    2    3    4    4    4    1    4 
654c 655a 656a 656c 671a 671b 671c 671d 673a 673b 673c 674a 674b 674c 674d 674e 
   2    2    3    1    1    1    3    1    2    2    1    3    2    1    2    1 
675a 675b 675c 676a 676b 676c 676d 676e 681a 681b 682a 683a 684a 684b 685a 691a 
   3    3    2    2    2    2    1    2    3    3    1    1    2    2    1    1 
691b 691c 691d 691f 692a 
   3    2    1    1    2 
[1] "codes_4_level" "ISCO88_3d"    
 10 111 121 122 123 131 200 211 213 214 221 222 231 232 233 235 241 242 243 244 
 10   3   3  42  20  50   9   2   5  53   5  18  11   8   4   4   2   6   6   8 
245 246 247 311 312 313 314 321 322 323 333 334 341 342 343 344 345 346 347 348 
 17   2  10  33   7   2   4  12  12  19  11   5  23   1  17  18   3   4   7   1 
410 411 412 413 414 419 421 422 511 512 513 514 516 522 611 612 613 614 615 700 
 21   9   1  11   1   7   9  11   5  16  11   4   6  30  24  21   8   5   9   9 
710 711 712 713 714 720 721 722 723 724 730 731 732 734 740 741 742 743 744 800 
  2   3  16  16  10   3   9  11  13  18   2   2   3   5   1  13   1   6   3   4 
811 812 814 815 816 820 821 825 826 827 828 831 832 833 834 910 913 915 916 931 
  4  11   3   4   1   1   4   3   9  12  29   9  13  14   4   2  13  10   1   6 
932 933 
  2   9 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.