process_question_results: Append the Response Frequency Table to a Question

Description Usage Arguments

View source: R/results_generation.R

Description

This function uses the contents of a question to determine which kind of question the given question is. Then it passes the question and the original_first_rows to the function which processes questions of that specific question type. After adding the results 'Table' to the question, the question is returned including this table as an additional new list element.

Usage

1
process_question_results(question, original_first_rows)

Arguments

question

This is a list object representing an individual question from a Qualtrics Survey File. The question must have a paired response column placed into the question under [['Responses']]. The insertion of the responses into questions is handled by link_responses_to_questions.

original_first_rows

A dataframe contianing the header information for each column of response data. This dataframe includes a row for the DataExportTag based response column names, another for the Question Text stem and choice text (although truncated), and a row with QID based column names.


ctesta01/qualtrics-R-package documentation built on May 14, 2019, 12:28 p.m.