describe_gaps: Calculate summary statistics of gaps in the data

Description Usage Arguments Details Examples

View source: R/describe_gaps.R

Description

describe_gaps returns a data frame with summary statistics describing the gaps in the data.

Usage

1

Arguments

data

A data frame.

...

One or more numeric columns in the data frame that you want to calculate the gap descriptives of.

timestamp

The timestamp column in the data frame.

Details

Returns a data frame containing the start and end point, as well as the duration of each gap.

The data set can be grouped using dplyr's group_by so that the gap descriptives will be calculated for each group level.

Examples

1
2
3
4
5
6
7
library(dplyr)

describe_gaps(gaps, pupil_left)
describe_gaps(gaps, pupil_left, pupil_right)
gaps %>%
  group_by(trial) %>%
  describe_gaps(pupil_left, pupil_right)

WillemSleegers/eyepatch documentation built on Aug. 2, 2021, 8:39 a.m.