count_NAs: Convenience wrapper for count_cells() for counting NAs.

Description Usage Arguments Details Value

View source: R/missing_values.R

Description

Count the number of NAs in the data briken down by region, measure and some third factor, usually subject or item.

Usage

1
count_NAs(dat, by, rois, mois, value.col, region.col, measure.col)

Arguments

dat

data.frame containing data to process

by

quosure. column name for the main grouping variable. See "Details"

rois, mois

vectors of identifiers for regions and measures, in which cells have to be counted. Any of these can be left unsepcified, in this case, all regions and/or measure form the data will be used.

value.col

quosure. column name containing the NAs (potentially along with non-NA values. Typically it will be the column containing the reaction times or something alike).

region.col

quosure. column name containing region identifiers

measure.col

quosure. column name containing measure identifiers

Details

The by argument would typically contain subject or item column name. this is the main grouping variable, which varies slowest and will be displayed on the y axis in the summary plots.

Value

data.frame with 3 columns analogous to count_cells (i.e. containing the main grouping variable identifier (typically subject or item), the combination of region and measure identifying subsets of data, and NAs counts)


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