Learn R Programming

teal (version 0.15.2)

matrix_to_mapping: Convert mapping matrix to filter mapping specification.

Description

Transform a mapping matrix, i.e. a data frame that maps each filter state to each module, to a list specification like the one used in the mapping attribute of teal_slices. Global filters are gathered in one list element. If a module has no active filters but the global ones, it will not be mentioned in the output.

Usage

matrix_to_mapping(mapping_matrix)

Value

Named list like that in the mapping attribute of a teal_slices object.

Arguments

mapping_matrix

(data.frame) of logical vectors where columns represent modules and row represent teal_slices