mt_subset
is helpful when trials should be removed from all analyses.
By default, check
is set to "data" meaning that the subset condition
is evaluated based on the trial data (stored in data[["data"]]
).
However, it might also be of interest to only include trials based on
specific mouse-tracking measures (e.g., all trials with an MAD
smaller
than 200). In this case, check
needs to be set to the respective name
of the data.frame (e.g., "measures").
Note that if specific trials should be removed from all analyses based on a
condition known a priori (e.g., practice trials), it is more efficient to use
the subset function on the raw data before importing the trajectories
using one of the mt_import functions (such as mt_import_mousetrap).
Besides, if trials should only be removed from some analyses or for specific
plots, note that other mousetrap functions (e.g., mt_reshape,
mt_aggregate, and mt_plot) also allow for subsetting.