| check_reduce_raw_data | R Documentation |
Checks a data set that is considered an "observed data set". Used in the internals of dRiftDM. When calling this function, unncessary column names are stripped away.
check_reduce_raw_data(obs_data, b_coding_column, u_value, l_value)
obs_data |
a data.frame |
b_coding_column |
a single string, indicating which column of |
u_value, l_value |
the value within the |
Checks:
if obs_data is a data.frame
if "RT", b_coding_column, and "Cond" column are present
when IDs are present, if each ID has values on each condition. At the same time unused factor levels are dropped drop_levels_ID_column
If all columns are there, the data set is reduced to the relevant ones
for missing Values, and drops rows with missing values
if "Cond" is of type character, and if not casts it to character
if RT is of type numeric, and of not casts it to numeric
RTs are >= 0
that the values in b_coding_column match with u_value and l_value
(casts the column if necessary)
if b_coding_column has only 1 or 2 unique values
the obs_data for convenience (with edits as listed under Details).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.