update_curr: Update the current list of exposures or outcomes.

View source: R/utils-mod_heatmap.R

update_currR Documentation

Update the current list of exposures or outcomes.

Description

Takes information about the current events and uses it to determine the next list of exposures or outcomes that should be used.

Usage

update_curr(key, types, level, clicked, clicked_level = NULL)

Arguments

key

The exposures or outcomes 'key'. make_dummy_data provides an example of the expected key format.

types

A list of exposure types, where the names match the column names of the key.

level

The current level, as an int.

clicked

The value that was clicked, or NULL if nothing was clicked.

clicked_level

The level the click occured, where applicable.

Value

A list of exposures or outcomes.


tarensanders/screen_viz documentation built on June 18, 2022, 11:25 p.m.