check_rois_mois_existence: Check whether eye-tracking data contains regions of interest...

Description Usage Arguments Details Value

View source: R/missing_values.R

Description

Check whether eye-tracking data contains regions of interest (rois) and measures of interest (mois).

Usage

1
check_rois_mois_existence(dat, rois, mois, region.col, measure.col)

Arguments

dat

data.frame to check the existence of rois and mois

rois, mois

vectors of region and measures identifiers, which will be checked against region.col and measure.col respectively. The type of entries in the vector should be the same as in the corresponding columns

region.col, measure.col

name of column containing region and eye-tracking measures identifiers respectively. See "Details" for more info.

Details

The type of region.col and measure.col should be either "character" or "quosure" (see documentation for "quosure" in rlang package)

Value

Throws an error if some of the rois and mois are not present in the data.frame; the error text indicates which rois/mois are missing.


antonmalko/ettools documentation built on May 28, 2019, 3:35 p.m.