Title: | What the Package Does (Title Case) |
---|---|
Description: | More about what it does (maybe more than one line) Use four spaces when indenting paragraphs within the Description. |
Authors: | Who wrote it |
Maintainer: | The package maintainer <[email protected]> |
License: | What license is it under? |
Version: | 0.1.0 |
Built: | 2024-11-19 05:25:34 UTC |
Source: | https://github.com/hedibmustapha/QuestionnaireHTML |
Using the function Load questionnaire from koboquest with fake data
load_questionnaire_without_data(questions.file, choices.file, choices.label.column.to.use = NULL)
load_questionnaire_without_data(questions.file, choices.file, choices.label.column.to.use = NULL)
questions.file |
Path to your questionnaire csv file as character. |
choices.file |
Path to your choices csv file as character. |
choices.label.column.to.use |
Choices label column to be used as character. |
Loaded questionnaire
load_questionnaire_without_data("questionnaire_file.csv", "choices_file.csv", "label::Arabic",)
load_questionnaire_without_data("questionnaire_file.csv", "choices_file.csv", "label::Arabic",)
Map results to an output template
render_questionnaire_rmd(x, dir, filename)
render_questionnaire_rmd(x, dir, filename)
x |
list of parameters |
dir |
the directory in which to save the output file (absolute path or relative to current working directory) |
filename |
the name of the file. must end in '.html' |
Rename the header used in the choices file to label
sanitise_choices_label_listname(original.label, choices.names)
sanitise_choices_label_listname(original.label, choices.names)
original.label |
Name of the survey header to use. |
choices.names |
names of all columns. |
Rename the header used in the questonnaire file to constraint.message
sanitise_constraint_message_label(original.label, survey.names)
sanitise_constraint_message_label(original.label, survey.names)
original.label |
Name of the survey header to use. |
survey.names |
names of all columns. |
Rename the header used in the questonnaire file to label
sanitise_survey_label(original.label, survey.names)
sanitise_survey_label(original.label, survey.names)
original.label |
Name of the survey header to use. |
survey.names |
names of all columns. |