A feature set is mutable (an environment): add_feature() extends it in place and returns it invisibly, so calls chain with |>.
Usage
feature_set(...)
add_feature(fs, feature)
remove_feature(fs, name)
feature_set_columns(fs)
check_feature_set(fs, con)
Arguments
- ...
Zero or more study_feature objects to start with.
- fs
A feature_set.
- feature
A study_feature. Names and output columns must be unique within the set.
- name
Feature name to remove.
- con
A DBI connection to an OMOP DuckDB.
Value
An object of class feature_set.
feature_set_columns(): all output columns, in order.
check_feature_set(): a named list of missing OMOP tables per feature (empty when all is in place).