Package index
Package overview
What qesR does, its options and its conditions, in English and in French (?qesR-fr), with a table of every function.
-
qesRqesR-package - qesR: Access Quebec Election Study Datasets
-
qesR-fr - qesR en français
Data
Load a study from its original data file, or stack 11 studies in the merged file. Data are returned, never written into your workspace unless you ask.
-
get_qes() - Load a Quebec Election Study
-
get_qes_master() - Build the merged file
Studies and documents
The offline catalog of the studies qesR can load, their codebooks, questionnaires and reports, and the original files themselves. No network request unless you ask for one.
-
qes_studies() - List the studies qesR can load
-
qes_docs() - List the documents of each study
-
qes_download() - Download the original files of a study
Codebooks and search
What each variable measures, the exact question asked, in English and French, and which codes mean “don’t know” or “refused”. Offline for every study.
-
qes_codebook() - The codebook of a study
-
qes_question() - The exact wording of survey questions
-
qes_search() - Search variables across studies, in English and French
-
qes_missing() - Set "don't know", "refused" and other missing codes to NA
Harmonization
One data frame across the 11 studies: qes_spec() shows which studies have which harmonized variable and how comparable each study’s question is; qes_harmonize() applies the rules, with a reason for every missing value and each respondent’s waves and weights; qes_decon() gives one flat data frame of relaxed harmonized variables, one concept per column even where the questions differ; qes_design() turns the result into a survey design. See How harmonization works.
-
qes_spec() - Harmonization rules and coverage (experimental)
-
qes_harmonize() - Harmonize variables across studies (experimental)
-
qes_decon() - One flat data frame of relaxed harmonized variables (experimental)
-
qes_design() - Harmonized data as a survey design (experimental)
-
qes_party_lineage() - Join the parties of one lineage (ADQ and CAQ) in harmonized data
-
qes_provenance() - Where a study's data came from
-
qes_cite() - Cite qesR and the studies it loads
-
qes_cache_info() - List the files in the download cache
-
qes_cache_clear() - Delete files from the download cache
Older function names
Earlier names that keep working; ?qesR-deprecated names each one’s replacement.
-
qesR-deprecated - Older function names
-
get_qescodes() - List study codes (older name)
-
get_preview() - Preview a Quebec Election Study (older name)
-
get_codebook()get_qes_codebook() - Get a Quebec Election Study codebook (older name)
-
format_codebook() - Reformat a qesR codebook (older name)
-
get_value_labels() - Get value labels from a codebook (older name)
-
get_question() - Get survey question text (older name)
-
get_codebook_files()get_qes_codebook_files() - Get codebook files (older name)
-
download_codebook() - Download codebook files (older name)
-
get_decon() - Prepared non-exhaustive data frame (older name)