Learn R Programming

matRiks (version 0.1.3)

split_mat: 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 figure split_mat(obj, vis = TRUE, cell = NULL)

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

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)

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

Methods (by class)

  • split_mat(figure): Split the correct response

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

  • split_mat(matriks): Split all the visible figures composing a cell of the matrix or a concatenation of figures

Examples

Run this code
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)

Run the code above in your browser using DataLab