ds.validate_trial_uniqueness_constraint: Check if within aoi_timepoints table, there is no duplication...

View source: R/peekds_validators.R

ds.validate_trial_uniqueness_constraintR Documentation

Check if within aoi_timepoints table, there is no duplication in all the administration_ids associated with each individual trial_id

Description

Check if within aoi_timepoints table, there is no duplication in all the administration_ids associated with each individual trial_id

Usage

ds.validate_trial_uniqueness_constraint(df_aoi_timepoints)

Arguments

df_table

the aoi_timepoints dataframe

cdi_expected

specifies whether cdi_data is to be expected to be present in the imported data; only relevant for subjects table. We could consider creating a special table type, so that invalid combinations of table_type and cdi_expected cannot happen, but it does not break anything, so low priority

Value

an empty string when all the administration_ids are unique within each trial_id; Otherwise, the error message will be returned.

Examples

## Not run: 
is_valid <-ds.validate_table(df_table = df_table, table_type = "xy_data", cdi_expected = FALSE)

## End(Not run)


langcog/peekbankr documentation built on Dec. 19, 2024, 1:58 a.m.