#-------------------------------------------------------------------------------------------------------------------. # REGISTER CENSUS 2011 # Dataset PERSON # # This R! routine adds variable and value labels. # It works with Register Census 2011 microdata, prepared by SORS in April 2014. # Your dataset might have a smaller set of variables. # # Version 1, December 2014 # R 3.1.2 # # Social Science Data Archives, University of Ljubljana # Sebastian Kocar # http://www.adp.fdv.uni-lj.si/ # Contact: arhiv.podatkov@fdv.uni-lj.si # # This R code is protected under the Creative Commons licence. #-------------------------------------------------------------------------------------------------------------------. #--- CONFIGURATION SECTION --- START --- # The following commands should contain the complete path and # name of the .txt file to be read (e.g. 'C:/Census2011_v1.txt') # and the .txt file to be saved with labels (e.g. 'C:/Census2011_labels.txt') # Change TXT_DATA_PATH to your filename. # Change TXT_DATA_PATH_SAVE to your filename. #--- CONFIGURATION SECTION --- END --- #-------------------------------------------------------------------------------------------------------------------. #----------------------------------------------Start data processing------------------------------------------------. #--- importing data data<-read.delim("TXT_DATA_PATH", header = TRUE, sep = "\t", dec=",") #--- adding labels for variables and variable values require(Hmisc) label(data$GO_OS) <- "Household size" label(data$REF_GO) <- "Relation to the reference person of the household; 0 - Reference person of the household, 1 - Spouse, 2 - Cohabitant, 3 - Son / Daughter, 5 - Father / Mother, 6 - Father-in-law / Mother-in-law, 7 - Grandfather / Grandmother, 8 - Son-in-law / Daughter-in-law, 9 - Grandson / Granddaughter, 10 - Brother / Sister, 11 - Nephew / Niece, 12 - Other relative, 13 - Non-relative, 18 - Cohabitant of a child of the reference person, 21 - Institutional household member, 31 - Other household member" label(data$DRUZ_ZS) <- "Sequel family number in household" label(data$DRUZ_POL) <- "Family status; 1 - Parent / Spouse, 2 - Child living with married parents, 3 - Cohabitant, 4 - Child living in a consensual union, 5 - Lone parent, 6 - Child living with lone parent, 7 - Grandparent, 8 - Grandparents, 9 - Nephew, 10 - Brother / Sister, 11 - Non-family member, 12 - Not living in a private household" label(data$GO_GEN) <- "Generation in household; 1 - First generation, 2 - Second generation, 3 - Third generation, 4 - Fourth generation, 6 - One-person household, 7 - Non-private household, 9 - Unknown" label(data$GO_POL) <- "Household status; 1 - Married without children, 2 - Married with children, 3 - Lone mother, 4 - Lone father, 5 - Partner in a consensual union without children, 6 - Partner in a consensual union with children, 7 - Child of married parents, 8 - Child of a lone mother, 9 - Child of a lone father, 10 - Child of parents in a consensual union, 11 - Living alone, 12 - Non-family member, living in a family household, 13 - Non-family member, living in a non-family household, 14 - Non-family member, living with grandparents, 15 - Non-family member, living with siblings, 16 - Institutional household member, 17 - Other household member" label(data$TIP_DRUZ) <- "Type of family; 1 - Married couple, no children, 2 - Married couple with children, 3 - Mother with children, 4 - Father with children, 5 - Unmarried couple, no children, 6 - Unmarried couple with children, 7 - Grandparents with grandchildren, 8 - Grandparent with grandchildren, 9 - Siblings, 10 - Non-family member, 11 - Institutional household member, 12 - Other household member" label(data$TIP_GO) <- "Type of household; 1 - One-person, 2 - Multi-person non-family of relatives and non-relatives, 3 - Multi-person non-family of grandparents, grandchildren or si, 4 - Multi-person one-family, 5 - Multi-person one-family extended, 6 - Multi-person two or more-family, 7 - Multi-person two or more-family extended, 8 - Institutional household, 9 - Other household" label(data$PREB) <- "Type of resident; 1 - Citizen of the RS with permanent residence, 2 - Citizen of the RS with temporary residence, 3 - Foreigner with permanent residence, 4 - Foreigner with temporary residence, 5 - Citizen of the RS with usual residence abroad, 6 - Person with registered residence in Slovenia not included in" label(data$SP) <- "Sex; 1 - Male, 2 - Female" label(data$STAR) <- "Completed years of age" label(data$ZS) <- "Legal marital status; 1 - Single, 2 - Married, 3 - Widow/er, 4 - Divorced, 5 - Same gender partnership, 6 - Terminated IPS - death, 7 - Terminated IPS - other, 9 - Unknown" label(data$DRZ) <- "Citizenship; 4 - Afghanistan, 8 - Albania, 9 - Kosovo, 12 - Algeria, 16 - American Samoa, 20 - Andorra, 24 - Angola, 31 - Azerbaijan, 32 - Argentina, 36 - Australia, 40 - Austria, 44 - Bahamas, 50 - Bangladesh, 51 - Armenia, 52 - Barbados, 56 - Belgium, 68 - Bolivia, Plurinational State of, 70 - Bosnia and Herzegovina, 72 - Botswana, 76 - Brazil, 84 - Belize, 86 - British Indian Ocean Territory, 90 - Solomon Islands, 96 - Brunei Darussalam, 100 - Bulgaria, 104 - Myanmar, 108 - Burundi, 112 - Belarus, 116 - Cambodia, 120 - Cameroon, 124 - Canada, 132 - Cape Verde, 136 - Cayman Islands, 140 - Central African Republic, 144 - Sri Lanka, 148 - Chad, 152 - Chile, 156 - China, 158 - Taiwan, province of China, 170 - Colombia, 174 - Comoros, 178 - Congo, 180 - Congo, the Democratic Republic of the, 188 - Costa Rica, 191 - Croatia, 192 - Cuba, 196 - Cyprus, 200 - Czechoslovakia, 203 - Czech Republic, 204 - Benin, 208 - Denmark, 212 - Dominica, 214 - Dominican Republic, 218 - Ecuador, 222 - El Salvador, 231 - Ethiopia, 232 - Eritrea, 233 - Estonia, 242 - Fiji, 246 - Finland, 250 - France, 254 - French Guiana, 258 - French Polynesia, 262 - Djibouti, 266 - Gabon, 268 - Georgia, 270 - Gambia, 275 - Palestinian Territory, occupied, 276 - Germany, 288 - Ghana, 300 - Greece, 320 - Guatemala, 324 - Guinea, 328 - Guyana, 332 - Haiti, 336 - Holy See (Vatican City State), 340 - Honduras, 344 - Hong Kong, 348 - Hungary, 352 - Iceland, 356 - India, 360 - Indonesia, 364 - Iran, Islamic Republic of, 368 - Iraq, 372 - Ireland, 376 - Israel, 380 - Italy, 384 - Cote D´Ivoire, 388 - Jamaica, 392 - Japan, 398 - Kazakhstan, 400 - Jordan, 404 - Kenya, 408 - Korea, Democratic People´s Republic of, 410 - Korea, Republic of, 414 - Kuwait, 417 - Kyrgyzstan, 418 - Lao People´s Democratic Republic, 422 - Lebanon, 428 - Latvia, 430 - Liberia, 434 - Libya, 438 - Liechtenstein, 440 - Lithuania, 442 - Luxembourg, 450 - Madagascar, 454 - Malawi, 458 - Malaysia, 466 - Mali, 470 - Malta, 480 - Mauritius, 484 - Mexico, 492 - Monaco, 496 - Mongolia, 498 - Moldova, Republic of, 499 - Montenegro, 500 - Montserrat, 504 - Morocco, 508 - Mozambique, 512 - Oman, 516 - Namibia, 524 - Nepal, 528 - Netherlands, 530 - Netherlands Antilles, 533 - Aruba, 554 - New Zealand, 558 - Nicaragua, 566 - Nigeria, 578 - Norway, 586 - Pakistan, 591 - Panama, 598 - Papua New Guinea, 600 - Paraguay, 604 - Peru, 608 - Philippines, 616 - Poland, 620 - Portugal, 624 - Guinea-Bissau, 626 - Timor-Leste, 630 - Puerto Rico, 634 - Qatar, 642 - Romania, 643 - Russian federation, 646 - Rwanda, 659 - Saint Kitts and Nevis, 662 - Saint Lucia, 682 - Saudi Arabia, 686 - Senegal, 688 - Serbia, 694 - Sierra Leone, 702 - Singapore, 703 - Slovakia, 704 - Viet Nam, 705 - Slovenia, 706 - Somalia, 710 - South Africa, 716 - Zimbabwe, 724 - Spain, 729 - Sudan, 732 - Western Sahara, 736 - Sudan, 740 - Suriname, 752 - Sweden, 756 - Switzerland, 760 - Syrian Arab republic, 762 - Tajikistan, 764 - Thailand, 768 - Togo, 780 - Trinidad and Tobago, 784 - United Arab Emirates, 788 - Tunisia, 792 - Turkey, 795 - Turkmenistan, 800 - Uganda, 804 - Ukraine, 807 - Macedonia, the Former Yugoslav Republic of, 810 - USSR, 818 - Egypt, 826 - United Kingdom, 834 - Tanzania, United Republic of, 840 - United States, 854 - Burkina Faso, 858 - Uruguay, 860 - Uzbekistan, 862 - Venezuela, Bolivarian Republic of, 876 - Wallis and Futuna, 887 - Yemen, 890 - Yugoslavia, 891 - Serbia and Montenegro, 894 - Zambia, 901 - Kosovo, 995 - Palestinian Territory, Occupied, 998 - Abroad, 999 - Unknown country" label(data$OBC) <- "Usual residence - municipality - LOOK UP RPE_POPIS_2011 CODEBOOK" label(data$NAS) <- "Usual residence - settlement - LOOK UP RPE_POPIS_2011 CODEBOOK" label(data$PP_IND) <- "First residence indicator; 1 - Place of residence, 2 - Elsewhere in Slovenia, 3 - Abroad" label(data$PP_VIR) <- "First residence data source; 1 - 2002 Census, 2 - Statistical survey on birth 2002-2010, 3 - Statistical survey on immigration from abroad 2002-2010, 4 - Statistical methods" label(data$PP_OBC) <- "First residence - municipality - LOOK UP RPE_POPIS_2011 CODEBOOK" label(data$PP_DRZ) <- "First residence - country; 4 - Afghanistan, 8 - Albania, 9 - Kosovo, 12 - Algeria, 16 - American Samoa, 20 - Andorra, 24 - Angola, 31 - Azerbaijan, 32 - Argentina, 36 - Australia, 40 - Austria, 44 - Bahamas, 50 - Bangladesh, 51 - Armenia, 52 - Barbados, 56 - Belgium, 68 - Bolivia, Plurinational State of, 70 - Bosnia and Herzegovina, 72 - Botswana, 76 - Brazil, 84 - Belize, 86 - British Indian Ocean Territory, 90 - Solomon Islands, 96 - Brunei Darussalam, 100 - Bulgaria, 104 - Myanmar, 108 - Burundi, 112 - Belarus, 116 - Cambodia, 120 - Cameroon, 124 - Canada, 132 - Cape Verde, 136 - Cayman Islands, 140 - Central African Republic, 144 - Sri Lanka, 148 - Chad, 152 - Chile, 156 - China, 158 - Taiwan, province of China, 170 - Colombia, 174 - Comoros, 178 - Congo, 180 - Congo, the Democratic Republic of the, 188 - Costa Rica, 191 - Croatia, 192 - Cuba, 196 - Cyprus, 200 - Czechoslovakia, 203 - Czech Republic, 204 - Benin, 208 - Denmark, 212 - Dominica, 214 - Dominican Republic, 218 - Ecuador, 222 - El Salvador, 231 - Ethiopia, 232 - Eritrea, 233 - Estonia, 242 - Fiji, 246 - Finland, 250 - France, 254 - French Guiana, 258 - French Polynesia, 262 - Djibouti, 266 - Gabon, 268 - Georgia, 270 - Gambia, 275 - Palestinian Territory, occupied, 276 - Germany, 288 - Ghana, 300 - Greece, 320 - Guatemala, 324 - Guinea, 328 - Guyana, 332 - Haiti, 336 - Holy See (Vatican City State), 340 - Honduras, 344 - Hong Kong, 348 - Hungary, 352 - Iceland, 356 - India, 360 - Indonesia, 364 - Iran, Islamic Republic of, 368 - Iraq, 372 - Ireland, 376 - Israel, 380 - Italy, 384 - Cote D´Ivoire, 388 - Jamaica, 392 - Japan, 398 - Kazakhstan, 400 - Jordan, 404 - Kenya, 408 - Korea, Democratic People´s Republic of, 410 - Korea, Republic of, 414 - Kuwait, 417 - Kyrgyzstan, 418 - Lao People´s Democratic Republic, 422 - Lebanon, 428 - Latvia, 430 - Liberia, 434 - Libya, 438 - Liechtenstein, 440 - Lithuania, 442 - Luxembourg, 450 - Madagascar, 454 - Malawi, 458 - Malaysia, 466 - Mali, 470 - Malta, 480 - Mauritius, 484 - Mexico, 492 - Monaco, 496 - Mongolia, 498 - Moldova, Republic of, 499 - Montenegro, 500 - Montserrat, 504 - Morocco, 508 - Mozambique, 512 - Oman, 516 - Namibia, 524 - Nepal, 528 - Netherlands, 530 - Netherlands Antilles, 533 - Aruba, 554 - New Zealand, 558 - Nicaragua, 566 - Nigeria, 578 - Norway, 586 - Pakistan, 591 - Panama, 598 - Papua New Guinea, 600 - Paraguay, 604 - Peru, 608 - Philippines, 616 - Poland, 620 - Portugal, 624 - Guinea-Bissau, 626 - Timor-Leste, 630 - Puerto Rico, 634 - Qatar, 642 - Romania, 643 - Russian federation, 646 - Rwanda, 659 - Saint Kitts and Nevis, 662 - Saint Lucia, 682 - Saudi Arabia, 686 - Senegal, 688 - Serbia, 694 - Sierra Leone, 702 - Singapore, 703 - Slovakia, 704 - Viet Nam, 705 - Slovenia, 706 - Somalia, 710 - South Africa, 716 - Zimbabwe, 724 - Spain, 729 - Sudan, 732 - Western Sahara, 736 - Sudan, 740 - Suriname, 752 - Sweden, 756 - Switzerland, 760 - Syrian Arab republic, 762 - Tajikistan, 764 - Thailand, 768 - Togo, 780 - Trinidad and Tobago, 784 - United Arab Emirates, 788 - Tunisia, 792 - Turkey, 795 - Turkmenistan, 800 - Uganda, 804 - Ukraine, 807 - Macedonia, the Former Yugoslav Republic of, 810 - USSR, 818 - Egypt, 826 - United Kingdom, 834 - Tanzania, United Republic of, 840 - United States, 854 - Burkina Faso, 858 - Uruguay, 860 - Uzbekistan, 862 - Venezuela, Bolivarian Republic of, 876 - Wallis and Futuna, 887 - Yemen, 890 - Yugoslavia, 891 - Serbia and Montenegro, 894 - Zambia, 901 - Kosovo, 995 - Palestinian Territory, Occupied, 998 - Abroad, 999 - Unknown country" label(data$DRZ_PRIS) <- "Ever resided abroad - country; 4 - Afghanistan, 8 - Albania, 9 - Kosovo, 12 - Algeria, 16 - American Samoa, 20 - Andorra, 24 - Angola, 31 - Azerbaijan, 32 - Argentina, 36 - Australia, 40 - Austria, 44 - Bahamas, 50 - Bangladesh, 51 - Armenia, 52 - Barbados, 56 - Belgium, 68 - Bolivia, Plurinational State of, 70 - Bosnia and Herzegovina, 72 - Botswana, 76 - Brazil, 84 - Belize, 86 - British Indian Ocean Territory, 90 - Solomon Islands, 96 - Brunei Darussalam, 100 - Bulgaria, 104 - Myanmar, 108 - Burundi, 112 - Belarus, 116 - Cambodia, 120 - Cameroon, 124 - Canada, 132 - Cape Verde, 136 - Cayman Islands, 140 - Central African Republic, 144 - Sri Lanka, 148 - Chad, 152 - Chile, 156 - China, 158 - Taiwan, province of China, 170 - Colombia, 174 - Comoros, 178 - Congo, 180 - Congo, the Democratic Republic of the, 188 - Costa Rica, 191 - Croatia, 192 - Cuba, 196 - Cyprus, 200 - Czechoslovakia, 203 - Czech Republic, 204 - Benin, 208 - Denmark, 212 - Dominica, 214 - Dominican Republic, 218 - Ecuador, 222 - El Salvador, 231 - Ethiopia, 232 - Eritrea, 233 - Estonia, 242 - Fiji, 246 - Finland, 250 - France, 254 - French Guiana, 258 - French Polynesia, 262 - Djibouti, 266 - Gabon, 268 - Georgia, 270 - Gambia, 275 - Palestinian Territory, occupied, 276 - Germany, 288 - Ghana, 300 - Greece, 320 - Guatemala, 324 - Guinea, 328 - Guyana, 332 - Haiti, 336 - Holy See (Vatican City State), 340 - Honduras, 344 - Hong Kong, 348 - Hungary, 352 - Iceland, 356 - India, 360 - Indonesia, 364 - Iran, Islamic Republic of, 368 - Iraq, 372 - Ireland, 376 - Israel, 380 - Italy, 384 - Cote D´Ivoire, 388 - Jamaica, 392 - Japan, 398 - Kazakhstan, 400 - Jordan, 404 - Kenya, 408 - Korea, Democratic People´s Republic of, 410 - Korea, Republic of, 414 - Kuwait, 417 - Kyrgyzstan, 418 - Lao People´s Democratic Republic, 422 - Lebanon, 428 - Latvia, 430 - Liberia, 434 - Libya, 438 - Liechtenstein, 440 - Lithuania, 442 - Luxembourg, 450 - Madagascar, 454 - Malawi, 458 - Malaysia, 466 - Mali, 470 - Malta, 480 - Mauritius, 484 - Mexico, 492 - Monaco, 496 - Mongolia, 498 - Moldova, Republic of, 499 - Montenegro, 500 - Montserrat, 504 - Morocco, 508 - Mozambique, 512 - Oman, 516 - Namibia, 524 - Nepal, 528 - Netherlands, 530 - Netherlands Antilles, 533 - Aruba, 554 - New Zealand, 558 - Nicaragua, 566 - Nigeria, 578 - Norway, 586 - Pakistan, 591 - Panama, 598 - Papua New Guinea, 600 - Paraguay, 604 - Peru, 608 - Philippines, 616 - Poland, 620 - Portugal, 624 - Guinea-Bissau, 626 - Timor-Leste, 630 - Puerto Rico, 634 - Qatar, 642 - Romania, 643 - Russian federation, 646 - Rwanda, 659 - Saint Kitts and Nevis, 662 - Saint Lucia, 682 - Saudi Arabia, 686 - Senegal, 688 - Serbia, 694 - Sierra Leone, 702 - Singapore, 703 - Slovakia, 704 - Viet Nam, 705 - Slovenia, 706 - Somalia, 710 - South Africa, 716 - Zimbabwe, 724 - Spain, 729 - Sudan, 732 - Western Sahara, 736 - Sudan, 740 - Suriname, 752 - Sweden, 756 - Switzerland, 760 - Syrian Arab republic, 762 - Tajikistan, 764 - Thailand, 768 - Togo, 780 - Trinidad and Tobago, 784 - United Arab Emirates, 788 - Tunisia, 792 - Turkey, 795 - Turkmenistan, 800 - Uganda, 804 - Ukraine, 807 - Macedonia, the Former Yugoslav Republic of, 810 - USSR, 818 - Egypt, 826 - United Kingdom, 834 - Tanzania, United Republic of, 840 - United States, 854 - Burkina Faso, 858 - Uruguay, 860 - Uzbekistan, 862 - Venezuela, Bolivarian Republic of, 876 - Wallis and Futuna, 887 - Yemen, 890 - Yugoslavia, 891 - Serbia and Montenegro, 894 - Zambia, 901 - Kosovo, 995 - Palestinian Territory, Occupied, 998 - Abroad, 999 - Unknown country" label(data$LL_PRIS) <- "Year of arrival to the country" label(data$ZD_SEL_OBC) <- "Previous usual residence - municipality - LOOK UP RPE_POPIS_2011 CODEBOOK" label(data$ZD_SEL_DRZ) <- "Previous usual residence - country; 4 - Afghanistan, 8 - Albania, 9 - Kosovo, 12 - Algeria, 16 - American Samoa, 20 - Andorra, 24 - Angola, 31 - Azerbaijan, 32 - Argentina, 36 - Australia, 40 - Austria, 44 - Bahamas, 50 - Bangladesh, 51 - Armenia, 52 - Barbados, 56 - Belgium, 68 - Bolivia, Plurinational State of, 70 - Bosnia and Herzegovina, 72 - Botswana, 76 - Brazil, 84 - Belize, 86 - British Indian Ocean Territory, 90 - Solomon Islands, 96 - Brunei Darussalam, 100 - Bulgaria, 104 - Myanmar, 108 - Burundi, 112 - Belarus, 116 - Cambodia, 120 - Cameroon, 124 - Canada, 132 - Cape Verde, 136 - Cayman Islands, 140 - Central African Republic, 144 - Sri Lanka, 148 - Chad, 152 - Chile, 156 - China, 158 - Taiwan, province of China, 170 - Colombia, 174 - Comoros, 178 - Congo, 180 - Congo, the Democratic Republic of the, 188 - Costa Rica, 191 - Croatia, 192 - Cuba, 196 - Cyprus, 200 - Czechoslovakia, 203 - Czech Republic, 204 - Benin, 208 - Denmark, 212 - Dominica, 214 - Dominican Republic, 218 - Ecuador, 222 - El Salvador, 231 - Ethiopia, 232 - Eritrea, 233 - Estonia, 242 - Fiji, 246 - Finland, 250 - France, 254 - French Guiana, 258 - French Polynesia, 262 - Djibouti, 266 - Gabon, 268 - Georgia, 270 - Gambia, 275 - Palestinian Territory, occupied, 276 - Germany, 288 - Ghana, 300 - Greece, 320 - Guatemala, 324 - Guinea, 328 - Guyana, 332 - Haiti, 336 - Holy See (Vatican City State), 340 - Honduras, 344 - Hong Kong, 348 - Hungary, 352 - Iceland, 356 - India, 360 - Indonesia, 364 - Iran, Islamic Republic of, 368 - Iraq, 372 - Ireland, 376 - Israel, 380 - Italy, 384 - Cote D´Ivoire, 388 - Jamaica, 392 - Japan, 398 - Kazakhstan, 400 - Jordan, 404 - Kenya, 408 - Korea, Democratic People´s Republic of, 410 - Korea, Republic of, 414 - Kuwait, 417 - Kyrgyzstan, 418 - Lao People´s Democratic Republic, 422 - Lebanon, 428 - Latvia, 430 - Liberia, 434 - Libya, 438 - Liechtenstein, 440 - Lithuania, 442 - Luxembourg, 450 - Madagascar, 454 - Malawi, 458 - Malaysia, 466 - Mali, 470 - Malta, 480 - Mauritius, 484 - Mexico, 492 - Monaco, 496 - Mongolia, 498 - Moldova, Republic of, 499 - Montenegro, 500 - Montserrat, 504 - Morocco, 508 - Mozambique, 512 - Oman, 516 - Namibia, 524 - Nepal, 528 - Netherlands, 530 - Netherlands Antilles, 533 - Aruba, 554 - New Zealand, 558 - Nicaragua, 566 - Nigeria, 578 - Norway, 586 - Pakistan, 591 - Panama, 598 - Papua New Guinea, 600 - Paraguay, 604 - Peru, 608 - Philippines, 616 - Poland, 620 - Portugal, 624 - Guinea-Bissau, 626 - Timor-Leste, 630 - Puerto Rico, 634 - Qatar, 642 - Romania, 643 - Russian federation, 646 - Rwanda, 659 - Saint Kitts and Nevis, 662 - Saint Lucia, 682 - Saudi Arabia, 686 - Senegal, 688 - Serbia, 694 - Sierra Leone, 702 - Singapore, 703 - Slovakia, 704 - Viet Nam, 705 - Slovenia, 706 - Somalia, 710 - South Africa, 716 - Zimbabwe, 724 - Spain, 729 - Sudan, 732 - Western Sahara, 736 - Sudan, 740 - Suriname, 752 - Sweden, 756 - Switzerland, 760 - Syrian Arab republic, 762 - Tajikistan, 764 - Thailand, 768 - Togo, 780 - Trinidad and Tobago, 784 - United Arab Emirates, 788 - Tunisia, 792 - Turkey, 795 - Turkmenistan, 800 - Uganda, 804 - Ukraine, 807 - Macedonia, the Former Yugoslav Republic of, 810 - USSR, 818 - Egypt, 826 - United Kingdom, 834 - Tanzania, United Republic of, 840 - United States, 854 - Burkina Faso, 858 - Uruguay, 860 - Uzbekistan, 862 - Venezuela, Bolivarian Republic of, 876 - Wallis and Futuna, 887 - Yemen, 890 - Yugoslavia, 891 - Serbia and Montenegro, 894 - Zambia, 901 - Kosovo, 995 - Palestinian Territory, Occupied, 998 - Abroad, 999 - Unknown country" label(data$LL_ZAD_SEL) <- "Year of last migration" label(data$EU_PRIS) <- "Year of arrival to the country according to the EU methodology" label(data$OBC_2010) <- "Usual residence one year prior to the census - municipality - LOOK UP RPE_POPIS_2011 CODEBOOK" label(data$ROJ_IND) <- "Birth indicator; 1 - Have not given birth, 2 - Have given birth" label(data$ROJ_VIR) <- "Number of live-born children data source; 1 - Central Population Register - biological relation mother-chi, 2 - Statistical survey on birth 2002-2010, 3 - 2002 Census, 4 - Statistical methods (no data in sources), 5 - Statistical methods (imputation), 6 - Statistical methods (families with children), 7 - Not applicable" label(data$ROJ_ST) <- "Number of live-born children" label(data$AKT) <- "Current activity status; 1 - Employed, 2 - Self employed, 3 - Farmer / contributing family worker, 4 - Unemployed, never worked before, 5 - Unemployed, previously in employment, 6 - Person aged 0-14 years, 7 - Pupil, 8 - Student, 9 - Pension recipient, 10 - Social transfers recipient, 11 - Other inactive person" label(data$AKT_VIR) <- "Current activity status data source; 1 - Statistical Register of Employment (SORS), 2 - Statistical Register on Employment (SORS) - detached workers, 3 - Registered unemployed persons (Employment Service of Sloveni, 4 - Statistical survey on scholars (SORS), 5 - Statistical survey on student enrolment in tertiary educatio, 6 - Pension recipients (Pension and Disability Insurance Institu, 7 - Inactive persons in health insurance (Health Insurance Insti, 8 - Family members of insured persons (Health Insurance Institut, 9 - Recipients of social and other assistance and benefits (Mini, 10 - Income tax payers (Tax Administration of the Republic of Slo, 11 - Statistical rule (activity age limit), 12 - Statistical rule (type of settling), 13 - Statistical rule (agricultural holding), 14 - Statistical methods (imputation)" label(data$SKP) <- "Occupation -LOOK UP SKP_08 CODEBOOK" label(data$SKD) <- "Industry - LOOK UP SKD_2008 CODEBOOK" label(data$AKT_STAT) <- "Status in employment; 1 - Employee, 2 - Employer, 3 - Own account worker, Sysmiss - " label(data$KR_DEL_OBC) <- "Place of work - municipality - LOOK UP RPE_POPIS_2011 CODEBOOK" label(data$KR_DEL_DRZ) <- "Place of work - country; 4 - Afghanistan, 8 - Albania, 9 - Kosovo, 12 - Algeria, 16 - American Samoa, 20 - Andorra, 24 - Angola, 31 - Azerbaijan, 32 - Argentina, 36 - Australia, 40 - Austria, 44 - Bahamas, 50 - Bangladesh, 51 - Armenia, 52 - Barbados, 56 - Belgium, 68 - Bolivia, Plurinational State of, 70 - Bosnia and Herzegovina, 72 - Botswana, 76 - Brazil, 84 - Belize, 86 - British Indian Ocean Territory, 90 - Solomon Islands, 96 - Brunei Darussalam, 100 - Bulgaria, 104 - Myanmar, 108 - Burundi, 112 - Belarus, 116 - Cambodia, 120 - Cameroon, 124 - Canada, 132 - Cape Verde, 136 - Cayman Islands, 140 - Central African Republic, 144 - Sri Lanka, 148 - Chad, 152 - Chile, 156 - China, 158 - Taiwan, province of China, 170 - Colombia, 174 - Comoros, 178 - Congo, 180 - Congo, the Democratic Republic of the, 188 - Costa Rica, 191 - Croatia, 192 - Cuba, 196 - Cyprus, 200 - Czechoslovakia, 203 - Czech Republic, 204 - Benin, 208 - Denmark, 212 - Dominica, 214 - Dominican Republic, 218 - Ecuador, 222 - El Salvador, 231 - Ethiopia, 232 - Eritrea, 233 - Estonia, 242 - Fiji, 246 - Finland, 250 - France, 254 - French Guiana, 258 - French Polynesia, 262 - Djibouti, 266 - Gabon, 268 - Georgia, 270 - Gambia, 275 - Palestinian Territory, occupied, 276 - Germany, 288 - Ghana, 300 - Greece, 320 - Guatemala, 324 - Guinea, 328 - Guyana, 332 - Haiti, 336 - Holy See (Vatican City State), 340 - Honduras, 344 - Hong Kong, 348 - Hungary, 352 - Iceland, 356 - India, 360 - Indonesia, 364 - Iran, Islamic Republic of, 368 - Iraq, 372 - Ireland, 376 - Israel, 380 - Italy, 384 - Cote D´Ivoire, 388 - Jamaica, 392 - Japan, 398 - Kazakhstan, 400 - Jordan, 404 - Kenya, 408 - Korea, Democratic People´s Republic of, 410 - Korea, Republic of, 414 - Kuwait, 417 - Kyrgyzstan, 418 - Lao People´s Democratic Republic, 422 - Lebanon, 428 - Latvia, 430 - Liberia, 434 - Libya, 438 - Liechtenstein, 440 - Lithuania, 442 - Luxembourg, 450 - Madagascar, 454 - Malawi, 458 - Malaysia, 466 - Mali, 470 - Malta, 480 - Mauritius, 484 - Mexico, 492 - Monaco, 496 - Mongolia, 498 - Moldova, Republic of, 499 - Montenegro, 500 - Montserrat, 504 - Morocco, 508 - Mozambique, 512 - Oman, 516 - Namibia, 524 - Nepal, 528 - Netherlands, 530 - Netherlands Antilles, 533 - Aruba, 554 - New Zealand, 558 - Nicaragua, 566 - Nigeria, 578 - Norway, 586 - Pakistan, 591 - Panama, 598 - Papua New Guinea, 600 - Paraguay, 604 - Peru, 608 - Philippines, 616 - Poland, 620 - Portugal, 624 - Guinea-Bissau, 626 - Timor-Leste, 630 - Puerto Rico, 634 - Qatar, 642 - Romania, 643 - Russian federation, 646 - Rwanda, 659 - Saint Kitts and Nevis, 662 - Saint Lucia, 682 - Saudi Arabia, 686 - Senegal, 688 - Serbia, 694 - Sierra Leone, 702 - Singapore, 703 - Slovakia, 704 - Viet Nam, 705 - Slovenia, 706 - Somalia, 710 - South Africa, 716 - Zimbabwe, 724 - Spain, 729 - Sudan, 732 - Western Sahara, 736 - Sudan, 740 - Suriname, 752 - Sweden, 756 - Switzerland, 760 - Syrian Arab republic, 762 - Tajikistan, 764 - Thailand, 768 - Togo, 780 - Trinidad and Tobago, 784 - United Arab Emirates, 788 - Tunisia, 792 - Turkey, 795 - Turkmenistan, 800 - Uganda, 804 - Ukraine, 807 - Macedonia, the Former Yugoslav Republic of, 810 - USSR, 818 - Egypt, 826 - United Kingdom, 834 - Tanzania, United Republic of, 840 - United States, 854 - Burkina Faso, 858 - Uruguay, 860 - Uzbekistan, 862 - Venezuela, Bolivarian Republic of, 876 - Wallis and Futuna, 887 - Yemen, 890 - Yugoslavia, 891 - Serbia and Montenegro, 894 - Zambia, 901 - Kosovo, 995 - Palestinian Territory, Occupied, 998 - Abroad, 999 - Unknown country" label(data$SKIS_JP) <- "Derived type of sector; 1 - Private institutional sector, 2 - Public institutional sector, Sysmiss - " label(data$CAS_BP) <- "Duration of unemployment" label(data$IZB) <- "Educational attainment; 0 - No education, 11001 - First stage of basic education/Incomplete first stage of bas, 11002 - First stage of basic education/Complete first stage of basic, 11003 - Fulfilled basic education requirement/Incomplete second stag, 12001 - Second stage of basic education/Basic education, 13001 - Short-term vocational upper secondary education/Short-term v, 14001 - Vocational upper secondary education/Vocational upper second, 15001 - Technical upper secondary education/Technical upper secondar, 15002 - General upper secondary education/General upper secondary ed, 16101 - Higher vocational education/Higher vocational education, 16102 - Short-term higher education (former)/Short-term higher educa, 16201 - Specialization after short-term higher education (former)/Sp, 16202 - Professional higher education (former)/Professional higher e, 16203 - Professional higher education (first Bologna cycle)/Professi, 16204 - Academic higher education (first Bologna cycle)/Academic hig, 17001 - Specialization after professional higher education (former)/, 17002 - Academic higher education (former)/Academic higher education, 17003 - Master´s education (second Bologna cycle)/Master (second Bo, 18101 - Specialization after academic higher education (former)/Spec, 18102 - Education leading to "magisterij" of science (former)/"Magis, 18201 - Education leading to doctorate of science (former)/Doctorate, 18202 - Education leading to doctorate of science (third Bologna cyc" label(data$IZB_VIR) <- "Educational attainment data source; 1 - Statistical survey on tertiary education graduates (SORS), 2 - Graduates of general and vocational matura (National Examina, 3 - Vocational upper secondary education and persons that passed, 4 - Statistical survey on student enrolment in tertiary educatio, 5 - National examinations at the end of the 3rd educational cycl, 6 - Statistical survey on scholars (SORS), 7 - Statistical Register of Employment (SORS), 8 - Registered unemployed persons (Employment Service of Sloveni, 9 - 2002 Census - educational enrolment, 10 - 2003 Census - educational attainment, 11 - Statistical rule (age 0-14 years), 12 - Statistical rule (type of settling), 13 - Statistical rule (current activity status), 14 - Statistical methods (imputation)" label(data$MATI) <- "Status of biological mother; 1 - Mother lives in the same family, 2 - Mother lives in the same household, 3 - Mother lives in an other household in Slovenia, 4 - Mother is not the resident of Slovenia, 5 - No data" label(data$OCE) <- "Status of biological father; 1 - Father lives in the same family, 2 - Father lives in the same household, 3 - Father lives in an other household in Slovenia, 4 - Father is not the resident of Slovenia, 5 - No data" label(data$ZAKONEC) <- "Status of biological parents; 1 - Spouse lives in the same family, 2 - Spouse lives in the same household, 3 - Spouse lives in an other household in Slovenia, 4 - Spouse is not the resident of Slovenia, Sysmiss - " label(data$STARSI) <- "Status of spouse; 1 - Parents live in the same family, 2 - Parents live in the same household, 3 - One parent lives in the same family, the other one in the sa, 4 - Mother lives in the same family or in the same household, fa, 5 - Father lives in the same family or in the same household, mo, 6 - Parents live in an other household in Slovenia, 7 - Mother lives in the same family or in the same household, fa, 8 - Father lives in the same family or in the same household, mo, 9 - One parent lives in an other household in Slovenia, the othe, 10 - Parents are not the residents of Slovenia, 11 - Mother lives in an other household in Slovenia, no data on f, 12 - Father lives in an other household in Slovenia, no data on m, 13 - One parent is not the resident of Slovenia, no data on the o, 14 - No data" label(data$ID_GO) <- "Household ID" label(data$ID_DRUZ) <- "Family ID" label(data$ST_PREB_STAN) <- "Number of residents in the housing unit" label(data$ST_GO_STAN) <- "Number of households in the housing unit" label(data$ST_GO_HS) <- "Number of households at the address" label(data$ST_OT_DRUZ) <- "Number of children in the family" label(data$HS_MID_NAST) <- "Type of accommodation; 1 - Social work center without conventional dwellings, 2 - Residence for pupils and students, 3 - Postgraduate´s house, 4 - Special social care institute, 5 - Community, 6 - Prison, 7 - Religious institution, 8 - Elderly home, 9 - Elderly home with private households, 10 - Residence for students and religious institution, 11 - Elderly home, religious institution and private households, 12 - Elderly home and private households, 13 - Residence for students, religious institution and private ho, 14 - Worker dormitory in non-residential building, 15 - Worker dormitory with short-term settlement, 16 - Worker dormitory for communities, 17 - Worker dormitory in one-dwelling building, 18 - Worker dormitory in multi-dwelling building, 19 - Residence for students, worker dormitory and conventional dw, 20 - Religious institution, residence for students and private ho, 21 - Special social care institute with private households, 22 - Roma settlement, 23 - Social work center with conventional dwellings, 24 - Special accommodation center, 25 - Residence for students in building with conventional dwellin, 26 - Residence for pupils and students without institutional hous, 27 - Religious institution without institutional household, 28 - Special social care institute without institutional househol, 29 - Hotel and other tourist accommodation, 30 - Collective living quarter as a part of the building, 31 - Collective living quarter with 7 or less residents" label(data$DST_SID_K) <- "Building part ID - final" label(data$LASTNISKI_STATUS) <- "Tenure status of household; 1 - Owner, co-owner, 2 - Tenant, 3 - Other" label(data$GO_UPOR) <- "Tenure status of person; 1 - At least one household member is the owner of the housing un, 2 - At least one household member is the tenant of the housing u, 3 - Household occupying a housing unit under some other form of" label(data$ZS_D) <- "De facto marital status; 1 - Single, 2 - Married, 3 - Widow/er, 4 - Divorced, 5 - Non-marital partnership" label(data$DRUZ_OS) <- "Family size" label(data$SEL) <- "Migration indicator; 1 - Yes, 2 - No" label(data$STAR_PRIS) <- "Age at time of immigration from abroad" label(data$KRAJ_SEL) <- "Type of last migration; 1 - Living in the same settlement of residence since birth, 2 - Immigration from another settlement of the same municipality, 3 - Immigration from another municipality of the same statistica, 4 - Immigration from another statistical region, 5 - Immigration from abroad till 2009, 6 - immigration from abroad in 2010" label(data$STAR_ZD_SEL) <- "Age at time of last migration" label(data$LETA_SLO) <- "Duration of residence in the country" label(data$KRAJ_2010) <- "Place of residence one year prior to the census; 1 - Settlement of residence, 2 - Another settlement of the same municipality, 3 - Another municipality of the same statistical region, 4 - Another statistical region, 5 - Abroad, 6 - Born in previous year" label(data$KRAJ_DELA) <- "Type of place of work; 1 - Another settlement of the same municipality, 2 - Settlement of residence, 3 - Another municipality of the same statistical region, 4 - Another statistical region, 5 - Foreign country, Sysmiss - " label(data$ST_STAN_HS) <- "Number of occupied dwellings at the address" label(data$ST_PREB_NAS) <- "Number of residents of the settlement" label(data$VEL_NAS) <- "Size of locality; 1 - 1,000,000 inhabitants or more, 2 - From 500,000 to 999,999 inhabitants, 3 - From 200,000 to 499,999 inhabitants, 4 - From 100,000 to 199,999 inhabitants, 5 - From 50,000 to 99,999 inhabitants, 6 - From 20,000 to 49,999 inhabitants, 7 - From 10,000 to 19,999 inhabitants, 8 - From 5,000 to 9,999 inhabitants, 9 - From 2,000 to 4,999 inhabitants, 10 - From 1,000 to 1,999 inhabitants, 11 - From 500 to 999 inhabitants, 12 - From 200 to 499 inhabitants, 13 - From 100 to 199 inhabitants, 14 - From 50 to 99 inhabitants, 15 - From 25 to 49 inhabitants, 16 - From 1 to 24 inhabitants, 17 - No inhabitants" label(data$ID_KOHEZIJSKA) <- "Usual residence - cohesion region - LOOK UP RPE_POPIS_2011 CODEBOOK" label(data$ID_STATISTICNA) <- "Usual residence - statistical region - LOOK UP RPE_POPIS_2011 CODEBOOK" label(data$TIP_NASELJA) <- "Type of settlement / area" label(data$TIP_STAR_GO) <- "Age structure of household; 1 - Young generation household, all members under 35 years, 2 - Young and middle generation household, all members under 50, 3 - Middle generation household, all members aged 35-49 years, 4 - Middle and older generation household, all members aged 35-6, 5 - Older generation household, all members aged 50-69 years, 6 - Older and elderly generation household, all members over 50, 7 - Elderly generation household, all members over 70 years, 8 - Skip age-group generation household, 9 - Household with three or four age-group generations" label(data$TIP_GEN_GO) <- "Generational composition of household; 1 - First generation only, 2 - Two successive generations, 3 - Three successive generations, 4 - Four successive generations, 5 - First, second and fourth generation, 6 - First and third generation, 7 - First, third and fourth generation, 8 - One-person household, 9 - Data on generation not available" label(data$TIP_DRZ_GO) <- "Household composition by citizenship; 1 - Citizens of the RS with permanent residence only, 2 - Citizens of the RS with temporary residence only, 3 - Citizens of the RS with permanent and temporary residence, 4 - Foreign citizens with permanent residence only, 5 - Foreign citizens with temporary residence only, 6 - Foreign citizens with permanent and temporary residence, 7 - Citizens of the RS and foreign citizens" label(data$TIP_PRIS_GO) <- "Immigrant background of household; 1 - First generation immigrants only, 2 - First and second generation of immigrants, 3 - Second generation immigrants only, 4 - Second and third generation of immigrants, 5 - Third generation immigrants only, 6 - First generation immigrants and persons without immigrant ba, 7 - First and second generation of immigrants and persons withou, 8 - Second generation immigrants and persons without immigrant b, 9 - Second and third generation of immigrants and persons withou, 10 - Third generation immigrants and persons without immigrant ba, 11 - First, second and third generation of immigrants, 12 - First, second and third generation of immigrants and persons, 13 - First and third generation of immigrants, 14 - First and third generation of immigrants and persons without, 15 - No persons with immigrant background, 16 - Persons without immigrant background and persons without dat, 17 - Persons without data on immigrant background" label(data$TIP_STAN_ENOTE) <- "Type of living quarters; 1 - Conventional dwelling, 2 - Collective living quarter, 3 - Other housing unit, 4 - Different intitutions dealling also with homless people like, 5 - Unknown, 6 - Other parts of buildings" label(data$UPOR_POVR_GO) <- "Useful floor space" label(data$UPOR_POVR_GO_R) <- "Useful floor space - range; 1 - less than 30 m2, 2 - 30 - less than 40 m2, 3 - 40 - less than 50 m2, 4 - 50 - less than 60 m2, 5 - 60 - less than 80 m2, 6 - 80 - less than 100 m2, 7 - 100 - less than 120 m2, 8 - 120 - less than 150 m2, 9 - 150 m2 and more, 10 - Not stated" label(data$UPOR_POVR_GO_OS) <- "Density standard" label(data$UPOR_POVR_GO_OS_R) <- "Density standard - range; 1 - less than 10 m2, 2 - 10 - less than 15 m2, 3 - 15 - less than 20 m2, 4 - 20 - less than 30 m2, 5 - 30 - less than 40 m2, 6 - 40 - less than 60 m2, 7 - 60 - less than 80 m2, 8 - 80 m2 and more, 9 - Not stated" label(data$ST_SOB_GO) <- "Number of rooms" label(data$KOP_WC_GO) <- "Basic dwelling facilities; 1 - Dwelling with water supply system, toilet and bathing facili, 2 - Dwelling with water supply system and toilet facilities with, 3 - Dwelling with water supply system and bathing facilities wit, 4 - Dwelling with water supply system without bathing and toilet, 5 - Dwelling without water supply system with bathing and toilet, 6 - Dwelling without water supply system and bathing facilities, 7 - Dwelling without water supply system and toilet facilities w, 8 - Dwelling without water supply system, toilet and bathing fac, 9 - Other housing unit" label(data$REG_2010) <- "Usual residence one year prior to the census -statistical region - LOOK UP RPE_POPIS_2011 CODEBOOK" label(data$KR_DEL_REG) <- "Place of work - statistical region - LOOK UP RPE_POPIS_2011 CODEBOOK" label(data$ZD_SEL_REG) <- "Previous usual residence - statistical region - LOOK UP RPE_POPIS_2011 CODEBOOK" label(data$PP_IND_M_2) <- "First residence indicator of father; 1 - Slovenia, no immigrant background, 2 - Slovenia, second generation immigrant, 3 - Abroad, first generation immigrant, 4 - Not possible to define immigrant background" label(data$PP_DRZ_M_2) <- "Country of first residence of father; 4 - Afghanistan, 8 - Albania, 9 - Kosovo, 12 - Algeria, 16 - American Samoa, 20 - Andorra, 24 - Angola, 31 - Azerbaijan, 32 - Argentina, 36 - Australia, 40 - Austria, 44 - Bahamas, 50 - Bangladesh, 51 - Armenia, 52 - Barbados, 56 - Belgium, 68 - Bolivia, Plurinational State of, 70 - Bosnia and Herzegovina, 72 - Botswana, 76 - Brazil, 84 - Belize, 86 - British Indian Ocean Territory, 90 - Solomon Islands, 96 - Brunei Darussalam, 100 - Bulgaria, 104 - Myanmar, 108 - Burundi, 112 - Belarus, 116 - Cambodia, 120 - Cameroon, 124 - Canada, 132 - Cape Verde, 136 - Cayman Islands, 140 - Central African Republic, 144 - Sri Lanka, 148 - Chad, 152 - Chile, 156 - China, 158 - Taiwan, province of China, 170 - Colombia, 174 - Comoros, 178 - Congo, 180 - Congo, the Democratic Republic of the, 188 - Costa Rica, 191 - Croatia, 192 - Cuba, 196 - Cyprus, 200 - Czechoslovakia, 203 - Czech Republic, 204 - Benin, 208 - Denmark, 212 - Dominica, 214 - Dominican Republic, 218 - Ecuador, 222 - El Salvador, 231 - Ethiopia, 232 - Eritrea, 233 - Estonia, 242 - Fiji, 246 - Finland, 250 - France, 254 - French Guiana, 258 - French Polynesia, 262 - Djibouti, 266 - Gabon, 268 - Georgia, 270 - Gambia, 275 - Palestinian Territory, occupied, 276 - Germany, 288 - Ghana, 300 - Greece, 320 - Guatemala, 324 - Guinea, 328 - Guyana, 332 - Haiti, 336 - Holy See (Vatican City State), 340 - Honduras, 344 - Hong Kong, 348 - Hungary, 352 - Iceland, 356 - India, 360 - Indonesia, 364 - Iran, Islamic Republic of, 368 - Iraq, 372 - Ireland, 376 - Israel, 380 - Italy, 384 - Cote D´Ivoire, 388 - Jamaica, 392 - Japan, 398 - Kazakhstan, 400 - Jordan, 404 - Kenya, 408 - Korea, Democratic People´s Republic of, 410 - Korea, Republic of, 414 - Kuwait, 417 - Kyrgyzstan, 418 - Lao People´s Democratic Republic, 422 - Lebanon, 428 - Latvia, 430 - Liberia, 434 - Libya, 438 - Liechtenstein, 440 - Lithuania, 442 - Luxembourg, 450 - Madagascar, 454 - Malawi, 458 - Malaysia, 466 - Mali, 470 - Malta, 480 - Mauritius, 484 - Mexico, 492 - Monaco, 496 - Mongolia, 498 - Moldova, Republic of, 499 - Montenegro, 500 - Montserrat, 504 - Morocco, 508 - Mozambique, 512 - Oman, 516 - Namibia, 524 - Nepal, 528 - Netherlands, 530 - Netherlands Antilles, 533 - Aruba, 554 - New Zealand, 558 - Nicaragua, 566 - Nigeria, 578 - Norway, 586 - Pakistan, 591 - Panama, 598 - Papua New Guinea, 600 - Paraguay, 604 - Peru, 608 - Philippines, 616 - Poland, 620 - Portugal, 624 - Guinea-Bissau, 626 - Timor-Leste, 630 - Puerto Rico, 634 - Qatar, 642 - Romania, 643 - Russian federation, 646 - Rwanda, 659 - Saint Kitts and Nevis, 662 - Saint Lucia, 682 - Saudi Arabia, 686 - Senegal, 688 - Serbia, 694 - Sierra Leone, 702 - Singapore, 703 - Slovakia, 704 - Viet Nam, 705 - Slovenia, 706 - Somalia, 710 - South Africa, 716 - Zimbabwe, 724 - Spain, 729 - Sudan, 732 - Western Sahara, 736 - Sudan, 740 - Suriname, 752 - Sweden, 756 - Switzerland, 760 - Syrian Arab republic, 762 - Tajikistan, 764 - Thailand, 768 - Togo, 780 - Trinidad and Tobago, 784 - United Arab Emirates, 788 - Tunisia, 792 - Turkey, 795 - Turkmenistan, 800 - Uganda, 804 - Ukraine, 807 - Macedonia, the Former Yugoslav Republic of, 810 - USSR, 818 - Egypt, 826 - United Kingdom, 834 - Tanzania, United Republic of, 840 - United States, 854 - Burkina Faso, 858 - Uruguay, 860 - Uzbekistan, 862 - Venezuela, Bolivarian Republic of, 876 - Wallis and Futuna, 887 - Yemen, 890 - Yugoslavia, 891 - Serbia and Montenegro, 894 - Zambia, 901 - Kosovo, 995 - Palestinian Territory, Occupied, 998 - Abroad, 999 - Unknown country" label(data$PP_IND_O_2) <- "First residence indicator of mother; 1 - Slovenia, no immigrant background, 2 - Slovenia, second generation immigrant, 3 - Abroad, first generation immigrant, 4 - Not possible to define immigrant background" label(data$PP_DRZ_O_2) <- "Country of first residence of mother; 4 - Afghanistan, 8 - Albania, 9 - Kosovo, 12 - Algeria, 16 - American Samoa, 20 - Andorra, 24 - Angola, 31 - Azerbaijan, 32 - Argentina, 36 - Australia, 40 - Austria, 44 - Bahamas, 50 - Bangladesh, 51 - Armenia, 52 - Barbados, 56 - Belgium, 68 - Bolivia, Plurinational State of, 70 - Bosnia and Herzegovina, 72 - Botswana, 76 - Brazil, 84 - Belize, 86 - British Indian Ocean Territory, 90 - Solomon Islands, 96 - Brunei Darussalam, 100 - Bulgaria, 104 - Myanmar, 108 - Burundi, 112 - Belarus, 116 - Cambodia, 120 - Cameroon, 124 - Canada, 132 - Cape Verde, 136 - Cayman Islands, 140 - Central African Republic, 144 - Sri Lanka, 148 - Chad, 152 - Chile, 156 - China, 158 - Taiwan, province of China, 170 - Colombia, 174 - Comoros, 178 - Congo, 180 - Congo, the Democratic Republic of the, 188 - Costa Rica, 191 - Croatia, 192 - Cuba, 196 - Cyprus, 200 - Czechoslovakia, 203 - Czech Republic, 204 - Benin, 208 - Denmark, 212 - Dominica, 214 - Dominican Republic, 218 - Ecuador, 222 - El Salvador, 231 - Ethiopia, 232 - Eritrea, 233 - Estonia, 242 - Fiji, 246 - Finland, 250 - France, 254 - French Guiana, 258 - French Polynesia, 262 - Djibouti, 266 - Gabon, 268 - Georgia, 270 - Gambia, 275 - Palestinian Territory, occupied, 276 - Germany, 288 - Ghana, 300 - Greece, 320 - Guatemala, 324 - Guinea, 328 - Guyana, 332 - Haiti, 336 - Holy See (Vatican City State), 340 - Honduras, 344 - Hong Kong, 348 - Hungary, 352 - Iceland, 356 - India, 360 - Indonesia, 364 - Iran, Islamic Republic of, 368 - Iraq, 372 - Ireland, 376 - Israel, 380 - Italy, 384 - Cote D´Ivoire, 388 - Jamaica, 392 - Japan, 398 - Kazakhstan, 400 - Jordan, 404 - Kenya, 408 - Korea, Democratic People´s Republic of, 410 - Korea, Republic of, 414 - Kuwait, 417 - Kyrgyzstan, 418 - Lao People´s Democratic Republic, 422 - Lebanon, 428 - Latvia, 430 - Liberia, 434 - Libya, 438 - Liechtenstein, 440 - Lithuania, 442 - Luxembourg, 450 - Madagascar, 454 - Malawi, 458 - Malaysia, 466 - Mali, 470 - Malta, 480 - Mauritius, 484 - Mexico, 492 - Monaco, 496 - Mongolia, 498 - Moldova, Republic of, 499 - Montenegro, 500 - Montserrat, 504 - Morocco, 508 - Mozambique, 512 - Oman, 516 - Namibia, 524 - Nepal, 528 - Netherlands, 530 - Netherlands Antilles, 533 - Aruba, 554 - New Zealand, 558 - Nicaragua, 566 - Nigeria, 578 - Norway, 586 - Pakistan, 591 - Panama, 598 - Papua New Guinea, 600 - Paraguay, 604 - Peru, 608 - Philippines, 616 - Poland, 620 - Portugal, 624 - Guinea-Bissau, 626 - Timor-Leste, 630 - Puerto Rico, 634 - Qatar, 642 - Romania, 643 - Russian federation, 646 - Rwanda, 659 - Saint Kitts and Nevis, 662 - Saint Lucia, 682 - Saudi Arabia, 686 - Senegal, 688 - Serbia, 694 - Sierra Leone, 702 - Singapore, 703 - Slovakia, 704 - Viet Nam, 705 - Slovenia, 706 - Somalia, 710 - South Africa, 716 - Zimbabwe, 724 - Spain, 729 - Sudan, 732 - Western Sahara, 736 - Sudan, 740 - Suriname, 752 - Sweden, 756 - Switzerland, 760 - Syrian Arab republic, 762 - Tajikistan, 764 - Thailand, 768 - Togo, 780 - Trinidad and Tobago, 784 - United Arab Emirates, 788 - Tunisia, 792 - Turkey, 795 - Turkmenistan, 800 - Uganda, 804 - Ukraine, 807 - Macedonia, the Former Yugoslav Republic of, 810 - USSR, 818 - Egypt, 826 - United Kingdom, 834 - Tanzania, United Republic of, 840 - United States, 854 - Burkina Faso, 858 - Uruguay, 860 - Uzbekistan, 862 - Venezuela, Bolivarian Republic of, 876 - Wallis and Futuna, 887 - Yemen, 890 - Yugoslavia, 891 - Serbia and Montenegro, 894 - Zambia, 901 - Kosovo, 995 - Palestinian Territory, Occupied, 998 - Abroad, 999 - Unknown country" label(data$PRIS_GEN_2) <- "Immigrant generation; 1 - First generation, 2 - Second generation, both of parents first generation immigran, 3 - Second generation, only father first generation immigrant, 4 - Second generation, only mother first generation immigrant, 5 - Third generation, both of parents second generation immigran, 6 - Third generation, only father second generation immigrant, 7 - Third generation, only mother second generation immigrant, 8 - No immigrant background, father and mother not immigrants, 9 - No immigrant background, father is not immigrant, no data on, 10 - No immigrant background, mother is not immigrant, no data on, 11 - No data on immigrant background of parents" label(data$TIP_PRIS_2) <- "Immigrant background; 0 - No data on immigrant background, 1 - First generation immigrant from the territory of the former, 2 - First generation immigrant from other countries, 3 - Second generation immigrant with both parents from the terri, 4 - Second generation immigrant with both parents from other cou, 5 - Second generation immigrant with 1 parent from the territory, 6 - Second generation immigrant, one parent only immigrant (from, 7 - Second generation immigrant, one parent only immigrant (from, 8 - Third generation immigrant, 9 - No immigrant background" #----------------------------------------------End data processing------------------------------------------------. #--- displaying all labels attach(data) describe(data) #--- saving txt dataset with labels write.table(data, "TXT_DATA_PATH_SAVE", quote = FALSE, sep = "\t", dec=",", na = "NA")