shuffle_questions: Randomly shuffle questions in rounds

Description Usage Arguments Value

Description

Divides the questions into rounds containing one question per participant, then randomly shuffles the order of the questions within the round. This way the order of the questions will be random, but a question from the same participant won't appear again until a question from every participant is used.

Usage

1
shuffle_questions(questions, shuffle_by = rn)

Arguments

questions

A data frame with quiz questions (see [demo_questions] for format) and a rn variable that represents the random sequence number of the questions that were provided by the same participant.

shuffle_by

Unquoted name of the variable used to create shuffling groups.

Value

A data frame with shuffled questions.


martina-starc/peRson documentation built on April 14, 2021, 3:48 p.m.