gen_random_question: Generate question stats data

Description Usage Arguments Value Author(s)

View source: R/gen_data.R

Description

A functions that helps in the development in new functionalities by generating a random question stats data. The answers count is generated through a uniform probability distribution. Labels can be employed in all categorical variables.

Usage

1
2
3
4
5
6
7
8
9
gen_random_question(
  n_sub,
  n_answer,
  label_answer = NULL,
  label_sub_question = NULL,
  label_question = NULL,
  min_count = 1,
  max_count = 500
)

Arguments

n_sub

Numeric. The number of sub_questions that is being generated

n_answer

Numeric. The number of answer options

label_answer

Vector.

label_sub_question

Vector.

label_question

Character.

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.