Collect labels from metadata file

collect_val_labels(metadata)

collect_na_labels(metadata)

Arguments

metadata

A metadata data frame created by metadata_create.

Value

The unique valid labels or the user-defined missing labels found in all the files analyzed in metadata.

See also

Examples

test_survey <- retroharmonize::read_rds ( file = system.file("examples", "ZA7576.rds", package = "retroharmonize"), id = "test" ) example_metadata <- metadata_create (test_survey) collect_val_labels (metadata = example_metadata )
#> [1] "Friday, 7th June 2019" #> [2] "Saturday, 8th June 2019" #> [3] "Sunday, 9th June 2019" #> [4] "Monday, 10th June 2019" #> [5] "Tuesday, 11th June 2019" #> [6] "Wednesday, 12th June 2019" #> [7] "Thursday, 13th June 2019" #> [8] "Friday, 14th June 2019" #> [9] "Saturday, 15th June 2019" #> [10] "Sunday, 16th June 2019" #> [11] "Monday, 17th June 2019" #> [12] "Tuesday, 18th June 2019" #> [13] "Wedneday, 19th June 2019" #> [14] "Thursday, 20th June 2019" #> [15] "Friday, 21st June 2019" #> [16] "Saturday, 22nd June 2019" #> [17] "Sunday, 23rd June 2019" #> [18] "Monday, 24th June 2019" #> [19] "Tuesday, 25th June 2019" #> [20] "Wedneday, 26th June 2019" #> [21] "Friday, 28th June 2019" #> [22] "Before 8 h" #> [23] "8 - 12 h" #> [24] "13 - 16 h" #> [25] "17 - 19 h" #> [26] "20 - 22 h" #> [27] "23 h +" #> [28] "DK/NA" #> [29] "1 minute" #> [30] "363 minutes" #> [31] "377 minutes" #> [32] "383 minutes" #> [33] "388 minutes" #> [34] "392 minutes" #> [35] "409 minutes" #> [36] "414 minutes" #> [37] "416 minutes" #> [38] "452 minutes" #> [39] "454 minutes" #> [40] "482 minutes" #> [41] "531 minutes" #> [42] "537 minutes" #> [43] "543 minutes" #> [44] "548 minutes" #> [45] "555 minutes" #> [46] "604 minutes" #> [47] "613 minutes" #> [48] "627 minutes" #> [49] "656 minutes" #> [50] "709 minutes" #> [51] "738 minutes" #> [52] "744 minutes" #> [53] "747 minutes" #> [54] "Two (interviewer and respondent)" #> [55] "Three" #> [56] "Four" #> [57] "Five or more" #> [58] "DK" #> [59] "Excellent" #> [60] "Fair" #> [61] "Average" #> [62] "Bad" #> [63] "MONTENEGRO" #> [64] "SERBIA" #> [65] "MALTA" #> [66] "LUXEMBOURG" #> [67] "REPUBLIC OF CYPRUS" #> [68] "Baden-Wuerttemberg" #> [69] "Bayern" #> [70] "Berlin" #> [71] "Brandenburg" #> [72] "Bremen" #> [73] "Hamburg" #> [74] "Hessen" #> [75] "Mecklenburg-Vorpommern" #> [76] "Niedersachsen" #> [77] "Departements d'outre-mer [not covered]" #> [78] "Nordrhein-Westfalen" #> [79] "Rheinland-Pfalz" #> [80] "Saarland" #> [81] "North East [England]" #> [82] "Nord-Ovest [IT]" #> [83] "Sachsen" #> [84] "North West [England]" #> [85] "Sachsen-Anhalt" #> [86] "Yorkshire and The humber" #> [87] "Schleswig-Holstein" #> [88] "East midlands [England]" #> [89] "Sud [IT]" #> [90] "Thueringen" #> [91] "West Midlands [England]" #> [92] "Isole [IT]" #> [93] "East of England" #> [94] "Nord-Est [IT]" #> [95] "London" #> [96] "Centro [IT]" #> [97] "South East [England]" #> [98] "South West [England]" #> [99] "Wales" #> [100] "Scotland" #> [101] "Northern Ireland" #> [102] "Brussels hoofdstedelijk gewest" #> [103] "Ile de France" #> [104] "Istanbul" #> [105] "Central Hungary" #> [106] "Acores [not covered]" #> [107] "Attiki" #> [108] "Nord - Pas de Calais" #> [109] "Madrid" #> [110] "Madeira [not covered]" #> [111] "Canarias" #> [112] "Trabzon" #> [113] "Hovedstaden" #> [114] "Bratislavsky kraj" #> [115] "Praha" #> [116] "Stockholm" #> [117] "Anatoliki Makedonia, Thraki" #> [118] "Groningen" #> [119] "Lodzkie" #> [120] "North-West [RO]" #> [121] "Galicia" #> [122] "Burgenland [AT]" #> [123] "Norte [PT]" #> [124] "Antwerpen" #> [125] "Smaland med Oearna" #> [126] "Ipiros" #> [127] "Overijssel" #> [128] "Malopolskie" #> [129] "North-East [RO]" #> [130] "Champagne-Ardenne" #> [131] "Tekirdag" #> [132] "Pais Vasco" #> [133] "Kaernten" #> [134] "Central / North Transdanubia" #> [135] "Brabant Wallon" #> [136] "Norra Mellansverige" #> [137] "Severozapaden" #> [138] "Utrecht" #> [139] "Lubelskie" #> [140] "South [RO]" #> [141] "Izmir" #> [142] "Oberoesterreich" #> [143] "North Hungary" #> [144] "Yugozapaden" #> [145] "Voreio Aigaio [not covered]" #> [146] "Noord-Brabant" #> [147] "Wielkopolskie" #> [148] "South-West [RO]" #> [149] "Lorraine" #> [150] "Bursa" #> [151] "Castilla/Leon" #> [152] "Dolnoslaskie" #> [153] "Pays de la Loire" #> [154] "Ankara" #> [155] "Cataluna" #> [156] "Kujawsko-pomorskie" #> [157] "Aquitaine" #> [158] "Antalya" #> [159] "Andalucia" #> [160] "Rhone Alpes" #> [161] "Kirikkale" #> [162] "Languedoc-Roussillon" #> [163] "Zonguldak" #> [164] "Erzurum" #> [165] "Malatya" #> [166] "Gaziantep" #> [167] "Sjaelland" #> [168] "Zapadne Slovensko" #> [169] "Stredni Cechy" #> [170] "Oestra Mellansverige" #> [171] "Kentriki Makedonia" #> [172] "Friesland [NL]" #> [173] "Mazowieckie" #> [174] "Central [RO]" #> [175] "Asturias" #> [176] "Niederoesterreich" #> [177] "Limburg [BE]" #> [178] "Sydsverige" #> [179] "Ionia Nisia [not covered]" #> [180] "Gelderland" #> [181] "Slaskie" #> [182] "South-East [RO]" #> [183] "Picardie" #> [184] "Balikesir" #> [185] "Navarra" #> [186] "Steiermark" #> [187] "West Transdanubia" #> [188] "Hainaut" #> [189] "Mellersta Norrland" #> [190] "Severen tsentralen" #> [191] "Noord-Holland" #> [192] "Podkarpackie" #> [193] "Bucharest" #> [194] "Aydin" #> [195] "Salzburg" #> [196] "North Great Plain" #> [197] "Yuzhen tsentralen" #> [198] "Notio Aigaio [not covered]" #> [199] "Limburg [NL]" #> [200] "Zachodniopomorskie" #> [201] "West [RO]" #> [202] "Alsace" #> [203] "Kocaeli" #> [204] "Castilla/La Mancha" #> [205] "Opolskie" #> [206] "Bretagne" #> [207] "Konya" #> [208] "Valencia" #> [209] "Warminsko-mazurskie" #> [210] "Midi-Pyrenees" #> [211] "Adana" #> [212] "Murcia" #> [213] "Auvergne (not coded)" #> [214] "Kayseri" #> [215] "Provence-Alpes-Cote d-Azur" #> [216] "Kastamonu" #> [217] "Agri (not coded)" #> [218] "Van" #> [219] "Sanliurfa (not coded)" #> [220] "Syddanmark" #> [221] "Stredne Slovensko" #> [222] "Jihozapad" #> [223] "Ditiki Makedonia (not coded)" #> [224] "Drenthe" #> [225] "Cantabria" #> [226] "Wien" #> [227] "Oost-Vlaanderen" #> [228] "Vaestsverige" #> [229] "Ditiki Ellada" #> [230] "Flevoland" #> [231] "Haute Normandie" #> [232] "Rioja" #> [233] "South Transdanubia" #> [234] "Liege" #> [235] "Oevre Norrland" #> [236] "Severoiztochen" #> [237] "Zuid-Holland" #> [238] "Swietokrzyskie" #> [239] "Manisa" #> [240] "Tirol" #> [241] "South Great Plain" #> [242] "Kriti" #> [243] "Lubuskie" #> [244] "Franche-Comte" #> [245] "Extremadura" #> [246] "Poitou-Charentes" #> [247] "Baleares" #> [248] "Pomorskie" #> [249] "Limousin (not coded)" #> [250] "Hatay (not coded)" #> [251] "Ciudad Autonoma de Ceuta [not covered]" #> [252] "Corse [not covered]" #> [253] "Samsun" #> [254] "Mardin (not coded)" #> [255] "Midtjylland" #> [256] "Vychodne Slovensko" #> [257] "Severozapad" #> [258] "Thessalia" #> [259] "Vlaams Brabant" #> [260] "Sterea Ellada Evia" #> [261] "Centre [FR]" #> [262] "Aragon" #> [263] "Luxembourg [BE]" #> [264] "Yugoiztochen" #> [265] "Zeeland" #> [266] "Podlaskie" #> [267] "Vorarlberg" #> [268] "Ciudad Autonoma de Melilla [not covered]" #> [269] "Nordjylland" #> [270] "Severovychod" #> [271] "Algarve" #> [272] "West-Vlaanderen" #> [273] "Peloponnissos" #> [274] "Basse Normandie" #> [275] "Namur" #> [276] "Jihovychod" #> [277] "Centro [PT]" #> [278] "Bourgogne" #> [279] "Stredni Morava" #> [280] "Lisboa" #> [281] "Moravskoslezsko" #> [282] "Alentejo" #> [283] "Lansi-Suomi" #> [284] "Helsinki-Uusimaa" #> [285] "Etela-Suomi" #> [286] "Pohjois- ja Ita-Suomi" #> [287] "Aland [not covered]" #> [288] "Pohja-Eesti" #> [289] "Vardarski (Vardar)" #> [290] "Alytus county" #> [291] "Border" #> [292] "Pomurska" #> [293] "Diber" #> [294] "Dublin" #> [295] "Osrednjeslovenska" #> [296] "Elbasan" #> [297] "Berat" #> [298] "Primorsko-goranska zupanija" #> [299] "Grad Zagreb" #> [300] "Istochen (East)" #> [301] "Kaunas county" #> [302] "Midland" #> [303] "Podravska" #> [304] "Durres" #> [305] "Mid-East [IE]" #> [306] "Gorenjska" #> [307] "Tirana" #> [308] "Fier" #> [309] "Licko-senjska zupanija (not coded)" #> [310] "Zagrebacka zupanija" #> [311] "Jugozapaden (Southwest)" #> [312] "Klaipeda county" #> [313] "Kurzeme" #> [314] "West [IE]" #> [315] "Koroska" #> [316] "Kukes" #> [317] "Mid-West [IE]" #> [318] "Goriska" #> [319] "Gjirokaster" #> [320] "Zadarska zupanija" #> [321] "Krapinsko-zagorska zupanija" #> [322] "Laene-Eesti" #> [323] "Jugoistochen (Southeast)" #> [324] "Marijampole county" #> [325] "Savinjska" #> [326] "Lezhe" #> [327] "South-East [IE]" #> [328] "Obalno-Kraska" #> [329] "Korce" #> [330] "Sibensko-kninska zupanija" #> [331] "Varazdinska zupanija" #> [332] "Pelagoniski (Pelagonia)" #> [333] "Panevezys county" #> [334] "Latgale" #> [335] "Zasavska" #> [336] "Shkoder" #> [337] "South-West [IE]" #> [338] "Vlore" #> [339] "Splitsko-dalmatinska zupanija" #> [340] "Koprivnicko-krizevacka zupanija" #> [341] "Kesk-Eesti" #> [342] "Poloshki (Polog)" #> [343] "Siauliai county" #> [344] "Riga" #> [345] "Spodnjeposavska" #> [346] "Istarska zupanija" #> [347] "Medimurska zupanija" #> [348] "Kirde-Eesti" #> [349] "Severoistochen (Northeast)" #> [350] "Taurage county" #> [351] "Pieriga" #> [352] "Jugovzhodna Slovenija" #> [353] "Dubrovacko-neretvanska zupanija (not coded)" #> [354] "Bjelovarsko-bilogorska zupanija" #> [355] "Louna-Eesti" #> [356] "Skopski (Skopje)" #> [357] "Telsiai county" #> [358] "Vidzeme" #> [359] "Notranjsko-kraska" #> [360] "Viroviticko-podravska zupanija (not coded)" #> [361] "Utena county" #> [362] "Zemgale" #> [363] "Pozesko-slavonska zupanija" #> [364] "Vilnius county" #> [365] "Brodsko-posavska zupanija" #> [366] "Osjecko-baranjska zupanija" #> [367] "Vukovarsko-srijemska zupanija" #> [368] "NORTHERN CYPRUS (Turkish Cypriot Community)" #> [369] "Karlovacka zupanija" #> [370] "Sisacko-moslavacka zupanija" #> [371] "(Re-)Married: without children" #> [372] "(Re-)Married: children this marriage" #> [373] "(Re-)Married: children prev marriage" #> [374] "(Re-)Married: children this/prev marriage" #> [375] "Single liv w partner: without children" #> [376] "Single liv w partner: childr this union" #> [377] "Single liv w partner: childr prev union" #> [378] "Single liv w partner: childr this/prev union" #> [379] "Single: without children" #> [380] "Single: with children" #> [381] "Divorced/Separated: without children" #> [382] "Divorced/Separated: with children" #> [383] "Widow: without children" #> [384] "Widow: with children" #> [385] "Other (SPONT.)" #> [386] "Refusal (SPONT.)" #> [387] "Refusal" #> [388] "2 years" #> [389] "89 years" #> [390] "No full-time education" #> [391] "Still studying" #> [392] "Rural area or village" #> [393] "Small/middle town" #> [394] "Large town" #> [395] "Most of the time" #> [396] "From time to time" #> [397] "Almost never/never" #> [398] "Tend to trust" #> [399] "Tend not to trust" #> [400] "Inap. (not 1 in eu28)" #> [401] "Not mentioned" #> [402] "The rule of law" #> [403] "Respect for human life" #> [404] "Human rights" #> [405] "Individual freedom" #> [406] "Democracy" #> [407] "Peace" #> [408] "Equality" #> [409] "Solidarity, support for others" #> [410] "Tolerance" #> [411] "Religion" #> [412] "Self-fulfilment" #> [413] "Respect for other cultures" #> [414] "None (SPONTANEOUS)" #> [415] "You always vote" #> [416] "You decided a few months ago" #> [417] "You decided a few weeks ago" #> [418] "You decided a few days before the elections" #> [419] "You decided on the day of the election" #> [420] "You never vote"
collect_na_labels ( metadata = example_metadata )
#> [1] "DK (NOT DOCUMENTED)" #> [2] "DK" #> [3] "Inap. (not 1 in eu28)" #> [4] "Inap. (not CY-TCC in isocntry and not 1 in eu28)" #> [5] "Inap. (CY-TCC in isocntry)" #> [6] "Inap. (not CY-TCC in isocntry)" #> [7] "Inap. (not 1 in qg1)" #> [8] "Inap. (not 2 in qg1_orig)"