normWithin norms the data within specified groups in a data frame

normWithin(data = NULL, idvar, measurevar, betweenvars = NULL, na.rm = TRUE)

Arguments

data

a dataframe

idvar

the name of the column that identifies each subject

measurevar

the name of a column that contains the variable to be summariezed

betweenvars

a vector containing names of columns that are between-subjects variables

na.rm

boolean that indicates whether to ignore NA's

Value

a data.frame

Examples

if (FALSE) { normWithin(data = sleep, idvar = "ID", measurevar = "extra", betweenvars = "group") }