dataFormat: Format data for plots

Description Usage Arguments Value Examples

View source: R/dataFormat.R

Description

Format data for plots

Usage

1
2
dataFormat(x, measurevar = "residuals", categories = c(subject = "sub", time
  = "isi", type = "type", group = "music"))

Arguments

x

data frame to format

measurevar

dependent variable we are calculating values for

categories

list of grouping variables

subject

name of subject id

time

grouping variable for time (ie. isi)

type

grouping variable for stimulus type

group

grouping variable for experimental group

Value

correctly formatted data frame with means for each subject in each category

Examples

1
   dataFormat(x,measurevar="residuals",categories=c(subject="sub",time="isi",type="type",group="music"))

taylormez/bodhi documentation built on May 18, 2019, 8:10 p.m.