gen_sub_question_data: Generate sub_question data

Description Usage Arguments Value Author(s)

View source: R/gen_data.R

Description

Helper function that generates sub_questions answers stats for the Generate Random Question function. The answers count is generated through a uniform probability distribution.

Usage

1
gen_sub_question_data(sub, n_answer, min_count, max_count)

Arguments

sub

Numeric. The index of the sub_question that is being generated

n_answer

Numeric. The number of answer options

min_count

Numeric. Minimum count value that an answer will receive

max_count

Numeric. Maximum count value that an answer will receive

Value

Sub-question answer stats data

Author(s)

Leonardo Rocha


leofmr/surveystats documentation built on March 19, 2021, 3:48 p.m.