response_list {matRiks}R Documentation

Response list (Method)

Description

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

Usage

response_list(obj, seed, ...)

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

Arguments

obj

matriks, The matriks for which the distractor is generated

seed

seed

...

other arguments

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)

Methods (by class)

Examples

# 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))

[Package matRiks version 0.1.3 Index]