Skip to contents

Data extract constructors

Functions used to create transform instructions for teal applications.

add_no_selected_choices()
Add empty choice to choices selected
all_choices()
An S3 structure representing the selection of all possible choices in a filter_spec, select_spec or choices_selected object.
check_no_multiple_selection()
Checks that the extract_input specification does not allow multiple selection
choices_labeled() print(<choices_labeled>)
Set "<choice>:<label>" type of Names
choices_selected() is.choices_selected()
Choices Selected
data_extract_spec()
Data Extract input for teal modules
filter_spec()
Data extract filter specification
get_extract_datanames()
Gets names of the datasets from a list of data_extract_spec objects
no_selected_as_NULL()
Check select choices for no choice made
select_spec() select_spec.delayed_data() select_spec.default()
Column selection input specification
split_by_sep()
Split by separator
value_choices()
Wrapper on choices_labeled to label variable values basing on other variable values
variable_choices()
Wrapper on choices_labeled to label variables basing on existing labels in data
resolve_delayed()
Resolve delayed inputs by evaluating the code within the provided datasets

Data extract modules

teal modules to generate transform expressions

data_extract_multiple_srv()
Creates a named list of data_extract_srv output
data_extract_ui()
teal data extraction module user-interface
data_extract_srv()
Extraction of the selector(s) details
data_merge_srv()
Data merge module server
data_merge_module()
Data merge module
datanames_input()
Available datasets input
get_dataset_prefixed_col_names()
Returns non-key column names from data
get_anl_relabel_call()
Gets the relabel call
get_merge_call()
Get merge call from a list of selectors
get_relabel_call()
Create relabel call from named character
is_single_dataset()
Checks if the input data_extract_spec objects all come from the same dataset
list_extract_spec()
Make sure that the extract spec has list form
merge_datasets()
Merge the datasets on the keys

Human-readable formatting of a data extract object

format_data_extract()
Formatting data extracts