zscorewithinfactor | R Documentation |
zscores within factor for long format/nested data
zscorewithinfactor(fact, score, VERBOSE = T)
fact |
is grouping factor |
score |
is variable |
VERBOSE |
flag for printing factor during loop iteration |
x <- 1:10; f <- sample(c(rep('x',5),rep('y',5)))
z.vec <- zscorewithinfactor(f, x)
z.list <- tapply(x,f,zscore)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.