restructure_LWL: Restructure Looking While Listening (LWL) Data

Description Usage Arguments Value Examples

View source: R/restructure_LWL.R

Description

Restructure DataWiz Output for Looking While Listening for Lexical Semantic (R56). iCoder is made to measure looking/fixations across two targets. This allows us to look at fixations across three possible targets.

Usage

1
restructure_LWL(dataframe)

Arguments

dataframe

The dataframe (LWL output) that you want to modify. This MUST have the following columns: Subject, Condition (phonological, semantic, control), Trial, Timebin, Fixation (0, 0.5 or 1), target, competitor, distractor. Your areas of interest (target, competitor, distractor) should be columns filled with 0s. These will populate via this function.

Value

The same dataframes with the columns target, competitor, distractor filled based on specific parameters.

Examples

1
2
3
4
restructured_dataframe <- restructure_LWL(dataframe_name);
Be sure to create your area of interest columns that need to be labelled: target, competitor, distractor (case-sensitive).
It should like like this: dataframe_name$target <- 0
Frankly, the reason this is a function is because the original R script is 200 lines. This is a VERY context specific function.

katherinesimeon/HLL documentation built on Aug. 20, 2019, 8:19 a.m.