switchestotal: Switches total - this function calculates contingentent...

Description Usage Arguments Value Author(s) Examples

View source: R/switchestotal.R

Description

Given two AOIs, how many contingent switches were made? It gives the total number of switches as well as the break down of when it was aoi1 to aoi2 AND aoi2 to aoi1.

Usage

1
switchestotal(data_by_trial, "subjectID", "AOI1", "AOI2")

Arguments

data_by_trial

the dataframe - broken up by unique trial type

"subjectID"

the column that contains the subjectIDs

"AOI1"

the column of 1 of the aois of interest

"AOI2"

the column of the other aoi of interest

Value

This function returns a dataframe. The rows are each subject and the columns are the number of switches subjects make between the AOIs.

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.