response_list: Response list (Method)

View source: R/response_list.R

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

  • response_list(matriks): Response list

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

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

matRiks documentation built on May 29, 2024, 5:56 a.m.