calculate_missing_data: Calculate the missing data amount

View source: R/clean_and_downsample.R

calculate_missing_dataR Documentation

Calculate the missing data amount

Description

This function can be used to assess the amount of samples that have problematic data from each trial, which helps assess cleaning parameters

Usage

calculate_missing_data(data, pupil)

Arguments

data

your data of class PupillometryR

pupil

a column name denoting pupil size

Value

A summary table with number of missing samples in each trial

Examples

data(pupil_data)
Sdata <- make_pupillometryr_data(data = pupil_data,
subject = ID,
trial = Trial,
time = Time,
condition = Type)
new_data <- downsample_time_data(data = Sdata,
pupil = LPupil,
timebin_size = 50,
option = 'mean')
calculate_missing_data(data = new_data, pupil = LPupil)

PupillometryR documentation built on Sept. 15, 2023, 5:13 p.m.