Description Usage Arguments Details Value Examples
View source: R/get_questions.R
Extract questions from QSF file
1 | get_questions(qsf, df = TRUE)
|
qsf |
qsf file as R list |
df |
convert to a |
This function extracts all questions from a QSF file and can convert those to a data.frame
.
If df=FALSE
the function pulls all questions from the qsf without further modifications. If df=TRUE
the function returns a data.frame
with columns as listed below. Note, that the conversion into a data.frame
does not preserve information such as display and skip logic.
QID: Question ID (newly generated based on the sequence of questions in qsf
)
ID: Choice ID (if Class="Question" then ID=0)
Display : Displayed text
Class: One of three values: Question, Choices, Answers.
Language : The language code of the question, choice or answer.
QuestionType : Value from [['Payload']][['QuestionType']]
PrimaryAttribute: Value from [['PrimaryAttribute']]
SecondaryAttribute: Value from [['SecondaryAttribute']]
TextEntry: Text-entry allowed?
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.