long.data: long.data

View source: R/long.data.R

long.dataR Documentation

long.data

Description

transform wide form data into long form. Important to do repeated measure ANOVA analysis

Usage

long.data(data, phase = NULL, within = NULL, quest = NULL, score = NULL)

Arguments

data

data frame

phase

analysis phases. Mandatory parameter, it could be: 'baseline' 'induction', 'learning', or 'transfer'.

within

Number of within-subject factors in induction phase: 1 or 2

quest

Induction questionnaires: EVEA or SAM -> consider upper case

score

Dependent variable you'll use, depending on the induction phase questionnaire: anger, sadness, fear, happiness for the EVEA; arousal, valence for the SAM.

Value

long form data frame


ezrp/R documentation built on June 22, 2022, 7:24 p.m.

Related to long.data in ezrp/R...