normWithin: Norms data within groups

normWithinR Documentation

Norms data within groups

Description

normWithin norms the data within specified groups in a data frame

Usage

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

## Not run: 
normWithin(data = sleep, idvar = "ID", measurevar = "extra", betweenvars = "group")

## End(Not run)

hauselin/hausekeep documentation built on Feb. 3, 2023, 3:09 p.m.