Description Usage Arguments Value Author(s) Examples
View source: R/switchestotal.R
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.
1 | switchestotal(data_by_trial, "subjectID", "AOI1", "AOI2")
|
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 |
This function returns a dataframe. The rows are each subject and the columns are the number of switches subjects make between the AOIs.
Nicole Burke
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)
{
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.