zscorewithinfactor: zscores within factor for long format/nested data

View source: R/zscore.R

zscorewithinfactorR Documentation

zscores within factor for long format/nested data

Description

zscores within factor for long format/nested data

Usage

zscorewithinfactor(fact, score, VERBOSE = T)

Arguments

fact

is grouping factor

score

is variable

VERBOSE

flag for printing factor during loop iteration

Examples

  x <- 1:10; f <- sample(c(rep('x',5),rep('y',5)))
  z.vec  <- zscorewithinfactor(f, x)
  z.list <- tapply(x,f,zscore)

LabNeuroCogDevel/LNCDR documentation built on Oct. 13, 2023, 4:31 a.m.