Learn R Programming

matRiks (version 0.1.3)

response_list: Response list (Method)

Description

Generate the response list from a matriks (correct response and distractors)

Usage

response_list(obj, seed, ...)

# S3 method for matriks response_list(obj, seed = 666, ...)

Value

An object of class responses of length 11, containing the correct response + 10 distractors (3 repetition, 1 difference, 2 wrong principles, 4 incomplete correlate)

An object of class responses of length 11, containing the correct response + 10 distractors (3 repetition, 1 difference, 2 wrong principles, 4 incomplete correlate)

Arguments

obj

matriks, The matriks for which the distractor is generated

seed

seed

...

other arguments

Methods (by class)

  • response_list(matriks): Response list

    Generate the response list from a matriks (correct response and distractors)

Examples

Run this code
# create a matrix
m1 <- mat_apply(hexagon(), hrules = "lty", vrules = "size")
# draw the matrix
draw(m1)
# draw the responses
draw(response_list(m1))

# change the difference distractor by changing the random seed
draw(response_list(m1, seed = 8))
# create a matrix
m1 <- mat_apply(hexagon(), hrules = "lty", vrules = "size")
# draw the matrix
draw(m1)
# draw the responses
draw(response_list(m1))

# change the difference distractors by changing the random seed
draw(response_list(m1, seed = 8))

Run the code above in your browser using DataLab