Gern. Hier sind beide Zeilen:
ds$SD08 = factor(ds$SD08, levels=c("4","8","10","12","16","20","24","28","31","32","36","40","44","48","50","51","52","56","60","64","68","70","72","74","76","84","86","90","92","96","100","104","108","112","116","120","124","132","136","140","144","148","152","156","158","162","166","170","174","175","178","180","184","188","191","192","196","203","204","208","212","214","218","222","226","231","232","233","234","238","239","242","246","248","250","254","258","260","262","266","268","270","275","276","288","292","296","300","304","308","312","316","320","324","328","332","334","336","340","344","348","352","356","360","364","368","372","376","380","384","388","392","398","400","404","408","410","414","417","418","422","426","428","430","434","438","440","442","446","450","454","458","462","466","470","474","478","480","484","492","496","498","499","500","504","508","512","516","520","524","528","531","533","534","535","540","548","554","558","562","566","570","574","578","580","581","583","584","585","586","591","598","600","604","608","612","616","620","624","626","630","634","638","642","643","646","652","654","659","660","662","663","666","670","674","678","682","686","688","690","694","702","703","704","705","706","710","716","724","728","729","732","740","744","748","752","756","760","762","764","768","772","776","780","784","788","792","795","796","798","800","804","807","818","826","831","832","833","834","840","850","854","858","860","862","876","882","887","894","1001","1002","1003","1004","-1","-2","-9"), labels=c("Afghanistan","Albanien","Antarktis","Algerien","Amerikanische Samoa","Andorra","Angola","Antigua und Barbuda","Aserbaidschan","Argentinien","Australien","Österreich","Bahamas","Bahrain","Bangladesch","Armenien","Barbados","Belgien","Bermuda","Bhutan","Bolivien","Bosnien und Herzegowina","Botswana","Bouvet-Insel","Brasilien","Belize","Britisches Territorium im Indischen Ozean","Solomon Islands","British Virgin Islands","Brunei","Bulgarien","Burma","Burundi","Belarus","Kambodscha","Kamerun","Kanada","Cape Verde","Cayman Islands","Zentralafrikanische Republik","Sri Lanka","Chad","Chile","China (Volksrepublik China)","Taiwan","Weihnachtsinsel","Cocos Islands","Kolumbien","Komoren","Mayotte","Republik Kongo","Demokratische Republik Kongo","Cook Islands","Costa Rica","Kroatien","Kuba","Zypern","Tschechische Republik","Benin","Dänemark","Dominica","Dominikanische Republik","Ecuador","El Salvador","Äquatorial-Guinea","Äthiopien","Eritrea","Estland","Färöer-Inseln","Falkland-Inseln","Süd-Georgien und Süd-Sandwich-Inseln","Fidschi","Finnland","Åland-Inseln","Frankreich","Französisch-Guayana","Französisch-Polynesien","Französisch Southern Territories","Djibouti","Gabun","Georgia","Gambia","Palästina","Deutschland","Ghana","Gibraltar","Kiribati","Griechenland","Grönland","Grenada","Guadeloupe","Guam","Guatemala","Guinea","Guyana","Haiti","Heard und McDonald-Inseln","Vatikanstadt","Honduras","Hong Kong","Ungarn","Island","Indien","Indonesien","Iran","Irak","Irland","Israel","Italien","Côte d\'Ivoire","Jamaica","Japan","Kasachstan","Jordan","Kenia","Nordkorea","Südkorea","Kuwait","Kirgisistan","Laos","Libanon","Lesotho","Lettland","Liberia","Libyen","Liechtenstein","Litauen","Luxemburg","Macao","Madagaskar","Malawi","Malaysien","Malediven","Mali","Malta","Martinique","Mauretanien","Mauritius","Mexiko","Monaco","Mongolei","Moldawien","Montenegro","Montserrat","Marokko","Mosambik","Oman","Namibia","Nauru","Nepal","Niederlande","Curaçao","Aruba","Sint Maarten","Karibische Niederlande","Neukaledonien","Vanuatu","Neuseeland","Nicaragua","Niger","Nigeria","Niue","Norfolk-Insel","Norwegen","Northern Mariana Islands","United States Minor Outlying Islands","Föderierte Staaten von Mikronesien","Marshall Islands","Palau","Pakistan","Panama","Papua-Neuguinea","Paraguay","Peru","Philippinen","Pitcairn Islands","Polen","Portugal","Guinea-Bissau","Osttimor","Puerto Rico","Qatar","Réunion","Rumänien","Russland","Ruanda","Saint Barthélemy","St. Helena, Ascension und Tristan da Cunha","St. Kitts und Nevis","Anguilla","St. Lucia","Sankt Martin","Saint-Pierre und Miquelon","St. Vincent und die Grenadinen","San Marino","São Tomé und Príncipe","Saudi-Arabien","Senegal","Serbien","Seychellen","Sierra Leone","Singapur","Slowakei","Vietnam","Slowenien","Somalia","Südafrika","Simbabwe","Spanien","Südsudan","Sudan","Westsahara","Suriname","Svalbard","Swaziland","Schweden","Schweiz","Syrien","Tadschikistan","Thailand","Togo","Tokelau","Tonga","Trinidad und Tobago","Vereinigte Arabische Emirate","Tunesien","Türkei","Turkmenistan","Turks- und Caicosinseln","Tuvalu","Uganda","Ukraine","Mazedonien","Ägypten","Großbritannien","Guernsey","Jersey","Isle of Man","Tansania","Vereinigte Staaten von Amerika","United States Virgin Islands","Burkina Faso","Uruguay","Usbekistan","Venezuela","Wallis und Futuna","Samoa","Jemen","Sambia","Abchasien","Kosovo","Nordzypern","Südossetien","[NA] Keine Angabe","[NA] sonstige Texteingabe","[NA] nicht beantwortet"), ordered=FALSE)
ds$SD09 = factor(ds$SD09, levels=c("1","2","3","-9"), labels=c("weiblich","männlich","divers","[NA] nicht beantwortet"), ordered=FALSE)