Skip to content

Multiple selection and normalization

2 messages · Robert Lynch, Rui Barradas

#
Hello,

A data example would be great. Try the following.

set.seed(71926)  # make up some data
dat <- data.frame(SIDN = 1:100,
		TERM = factor(sample(4, 100, TRUE)),
		GRADE = runif(100),
		INST = factor(sample(5, 100, TRUE)))

head(dat)

with(dat, ave(GRADE, list(TERM, INST), FUN = scale))


Hope this helps,

Rui Barradas

Em 03-06-2013 21:23, Robert Lynch escreveu: