View source: R/question_category_definition.R
define_questions_from_csv | R Documentation |
Each row in the text file is interpreted as a question. We only have to define the columns that we are going to use, the rest of the columns are taken by default.
define_questions_from_csv(qc, file, sep)
## S3 method for class 'question_category'
define_questions_from_csv(qc, file, sep = ",")
qc |
A |
file |
A string, name of a text file. |
sep |
Column separator character. |
For answers where a vector is required, "<|>" is used as a separator of the vector elements.
A question_category
.
Other question definition functions:
define_extended_question()
,
define_question()
,
define_questions_from_data_frame()
,
define_questions_from_excel()
,
generate_xml()
,
generate_xml_file()
,
question_category()
file <- system.file("extdata", "questions.csv", package = "moodef")
qc <-
question_category(category = 'Initial test', adapt_images = TRUE) |>
define_questions_from_csv(file = file)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.