split_mat {matRiks}R Documentation

Split the correct response (Method)

Description

Split all the visible figures composing a cell of the matrix or of a concatenation of figures

Usage

split_mat(obj, vis = TRUE, cell = NULL)

## S3 method for class 'figure'
split_mat(obj, vis = TRUE, cell = NULL)

## S3 method for class 'matriks'
split_mat(obj, vis = TRUE, cell = NULL)

Arguments

obj

The complex figure or the matrix to split

vis

logical, split only the visible figures. Default is TRUE

cell

integer, The index of the cell to be split. Default is the correct response

Value

A list of figures of length equal to the number of figures visible in the correct response (vis = TRUE) or to all the figures composing the complex figure (vis = FALSE)

A list of figures of length equal to the number of figures visible in the correct response (vis = TRUE) or to all the figures composing the complex figure (vis = FALSE)

A list of figures of length equal to the number of figures visible in the correct response (vis = TRUE) or to all the figures composing the complex figure (vis = FALSE)

Methods (by class)

Examples

m1 <- mat_apply(hexagon(), hrules = "lty")
# split the elements in the correct response and assign to an object
split_m1 <- split_mat(m1$Sq1)
m1 <- mat_apply(hexagon(), hrules = "lty")
# split the elements in the correct response and assign to an object
split_m1 <- split_mat(m1$Sq1)
m1 <- mat_apply(hexagon(), hrules = "lty")
# split the elements in the correct response and assign to an object
split_m1 <- split_mat(m1)

[Package matRiks version 0.1.3 Index]