modules_datasets: Create filterable data for modules

View source: R/utils.R

modules_datasetsR Documentation

Create filterable data for modules

Description

Converts input data to a FilteredData object(s) to allow filtering before passing data to individual modules.

Usage

modules_datasets(
  data,
  modules,
  filters,
  filtered_data_singleton = teal_data_to_filtered_data(data)
)

Arguments

data

(teal_data)

modules

(teal_modules) object

filters

(teal_slices) object

filtered_data_singleton

A result of teal_data_to_filtered_data applied to data.

Value

Returns list of same shape as modules, containing FilteredData at every leaf. If module specific, each leaf contains different instance, otherwise every leaf contains filtered_data_singleton.


teal documentation built on May 29, 2024, 10:11 a.m.