describe_data {eyetrackingR}

Describe dataset

Description

Returns descriptive statistics about a column of choice. A simple convenience function that wraps dplyr::group_by and dplyr::summarize, allowing a quick glance at the data.

Usage

describe_data(data, describe_column, group_columns)

Arguments

data

Data already run through make_eyetrackingr_data

describe_column

The column to return descriptive statistics about.

group_columns

Any columns to group by when calculating descriptive statistics (e.g., participants, conditions, etc.)

Value

A dataframe giving descriptive statistics for the describe_column, including mean, SD, var, min, max, and number of trials

Examples

data(word_recognition)
data <- make_eyetrackingr_data(word_recognition, 
                               participant_column = "ParticipantName",
                               trial_column = "Trial",
                               time_column = "TimeFromTrialOnset",
                               trackloss_column = "TrackLoss",
                               aoi_columns = c('Animate','Inanimate'),
                               treat_non_aoi_looks_as_missing = TRUE
)
describe_data(data, describe_column = "Animate", group_columns = "ParticipantName")
 


[Package eyetrackingR version 0.1.3]