Description Usage Arguments Details Examples
View source: R/describe_gaps.R
describe_gaps
returns a data frame with summary statistics describing
the gaps in the data.
1 | describe_gaps(data, time, ...)
|
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. |
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.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.