firstlook: FirstLook - which AOI was the first look?

Description Usage Arguments Value Author(s) Examples

View source: R/firstlook.R

Description

This function specifies which AOI participants look to first for a given trial. This function only deals with 2 AOIs - typically used in infant/child studies where you want to know which AOI - the left or right AOI - did infants/children first look? This data should deal with raw eyetracking data.

Usage

1
firstlook(data_by_trial, "subjectIDs", "AOI1", "AOI2")

Arguments

data_by_trial

name of the dataframe. Each df needs to be a unique trial

"subjectIDs"

the column of the subjectIDs

"AOI1"

the column of one of the desired AOIs

"AOI2"

the column of one of the desired AOIs

Value

This function returns a dataframe. The rows are each subject and the column is which AOI subjects looked too first.

Author(s)

Nicole Burke

Examples

1
2
3
4
5
6
7
8
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (x)
{
  }

nicoleburke/aoianalysis documentation built on Oct. 15, 2020, 4:07 p.m.