This page was last updated on July 21st, 2016.
The commit this reflects the code from is: 82af5
Line 35, R/results_generation.R is where we begin.
mc_single_answer_results <- function(question) {
javascript:(function(){var links = [ | |
"https://en.wikipedia.org/wiki/Special:Random", | |
"https://en.wikipedia.org/wiki/Portal:Current_events", | |
"http://mathworld.wolfram.com/", | |
"http://functions.wolfram.com/", | |
"https://en.wikipedia.org/wiki/Portal:Contents/Outlines", | |
"https://en.wikipedia.org/wiki/Glossary_of_areas_of_mathematics", | |
"http://mathworld.wolfram.com/classroom/", | |
"https://en.wikipedia.org/wiki/Lists_of_mathematics_topics", | |
"https://en.wikipedia.org/wiki/Mathematics_Subject_Classification#First-level_areas", |
This page was last updated on July 21st, 2016.
The commit this reflects the code from is: 82af5
Line 35, R/results_generation.R is where we begin.
mc_single_answer_results <- function(question) {
This page was last updated on July 21st, 2016.
The commit this reflects the code from is: 82af5
Line 92, R/results_generation.R is where we begin.
mc_multiple_answer_results <- function(question) {
This page was last updated on July 21st, 2016.
The commit this reflects the code from is: 82af5
Matrix questions use "choice" to indicate a horizontal question component and "answer" to indicate a vertical option. For example, if a matrix questions options were formatted like the following table, the "choices" would be the list of "apple", "orange" and "banana". Similarly, the
Recode Values are used for different purposes depending on the question type in the Qualtrics platform. Below is a quick reference to what kinds of variables are available to be defined by the user in a given question type, and where they appear in the response set. The Recode Values are always numeric variables, and Question Export Tags can be set as strings. On the following pages are short explanations for each question type with some screenshots of the recode values menu in use and the output the example creates.
library(readxl) | |
#' Turn a Directory into a list of Coded Comment Data Frames (unprocessed) | |
directory_get_coded_comment_sheets <- function(directory) { | |
# ask for directory if not provided | |
if (missing(directory)) directory <- choose.dir() | |
# we only want to look at Excel or CSV files in the given directory | |
files_list <- list.files(path=directory, full.names=TRUE) | |
files_list <- files_list[lapply(files_list, function(x) grepl("*.xlsx$|*.xls$|*.csv$", x)) == TRUE] |
library(QualtricsTools) | |
source("comment_coding.R") | |
get_setup(headerrows=2) | |
comments_dir <- "C:/path/to/coded_comments/here/" | |
coded_comments <- directory_coded_comments(comments_dir) | |
blocks <- insert_coded_comments(blocks, original_first_rows, coded_comments) | |
questions <- questions_from_blocks(blocks) | |
flow <- flow_from_survey(survey) | |
text_appendices <- text_appendices_table(blocks, original_first_rows, flow) | |
html_2_pandoc(html = c(blocks_header_to_html(blocks), text_appendices), file_name = "coded_text_appendices.docx", format = "docx", output_dir = "C:/output/directory/here/") |
library(QualtricsTools) | |
source("Q:/Student Work/Emma's Student Work/Report Generation/Comment Coding/comment-coding.R") | |
get_setup( | |
qsf_path = "Q:/Student Work/Emma's Student Work/Report Generation/Comment Coding/examples/fletcher/Fletcher_Continuing_and_Exiting_Student_Survey_2016.qsf", | |
csv_path = "Q:/Student Work/Emma's Student Work/Report Generation/Comment Coding/examples/fletcher/Fletcher_Continuing_and_Exiting_Student_Survey_2016.csv", | |
headerrows=2) |
library(QualtricsTools) | |
source("Q:/Student Work/Emma's Student Work/Report Generation/Comment Coding/comment-coding.R") | |
get_setup( | |
qsf_path = "Q:/Student Work/Emma's Student Work/Report Generation/Comment Coding/examples/grad admissions/grad_admissions.qsf", | |
csv_path = "Q:/Student Work/Emma's Student Work/Report Generation/Comment Coding/examples/grad admissions/grad_admissions.csv", | |
headerrows=3) |