generate_random_row: Generate a Random Row

View source: R/GenerateMockResponses.R

generate_random_rowR Documentation

Generate a Random Row

Description

For each row in the survey file generate the xml row needed for submission.

Usage

generate_random_row(
  submission_xml,
  survey,
  choices,
  survey_row,
  xml_level,
  group_at_level
)

Arguments

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.

Details

Rpackage file: GenerateMockResponses.R


l-gorman/rhomis-R-package documentation built on Nov. 8, 2023, 6:46 a.m.