View source: R/GenerateMockResponses.R
generate_random_row | R Documentation |
For each row in the survey file generate the xml row needed for submission.
generate_random_row(
submission_xml,
survey,
choices,
survey_row,
xml_level,
group_at_level
)
submission_xml |
The previous xml which must be appended |
survey |
The survey sheet to read |
choices |
The choices to read |
survey_row |
The index (which row) of the survey sheet which we must examine |
xml_level |
The level at which we are looking i.e, how many tabs to put at the start of this line |
group_at_level |
A dictionary telling us which "names" are associate with level of indentation, making it easier to close the groups when the survey groups when they have ended. |
Rpackage file: GenerateMockResponses.R
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.