text_appendices_table: Create HTML Tables for the Text Entry Questions

Description Usage Arguments Value

Description

This function creates an HTML string with tables for each of the text entry questions and their text_responses. The appendix_lettering function inside this function is to create lettering for the tables in the style of "A, B, ..., Z, AA, ..., ZZ" and so forth. The html tables are created by looping through the blocks and their contained question block elements. For each question, if the question is a Text Entry question or any of the response columns contain "TEXT" then a table is created for those text_responses.

Usage

1
text_appendices_table(blocks, original_first_rows, flow, n_threshold = 15)

Arguments

blocks

A list of blocks with block elements replaced by the question with its paired responses.

original_first_rows

This is the original first row of the response set. If you have the original_first_rowss, you can pass original_first_rowss[1,] to

flow

is a list of blockIDs which is used to order the questions in the output report.

n_threshold

is the number of comments which must be present in order for a coded comments table to appear.

Value

an html string containing a title, question text, and the text responses for each text appendix.


ctesta01/QualtricsTools documentation built on May 14, 2019, 12:27 p.m.