Description Usage Arguments Value
View source: R/comment_coding.R
This function splits the survey's response data and the coded comments, then inserts the split coded comments into the split surveys.
1 2 | insert_split_survey_comments(split_blocks, split_coded_comment_sheets,
split_column, original_first_rows)
|
split_blocks |
A list of a list of blocks. The same question, but with different respondent groups, might look something like split_blocks[[1]][[1]][['BlockElements']][[1]] and split_blocks[[2]][[1]][['BlockElements']][[1]]. These refer to the first and second respondent groups, the first block, and the first block element. Split blocks of this form are generated by the split_respondents function. |
split_coded_comment_sheets |
A list of lists where the outer lists each split group and the inner lists the pairs of question IDs with coded comment tables in each split group. |
split_column |
The string name of the column across which the coded comments should be split. |
original_first_rows |
A dataframe contianing the header information for each column of response data. This dataframe should include 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. |
The returned data is a list of lists of blocks. Each list of blocks has the coded comments for a specific respondent group inserted into them, and each of the lists of blocks in the output corresponds to a specific respondent group. The list of blocks is duplicated for each respondent group, and then that respondent group's coded comments are inserted into each list of blocks.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.