[R] Applying "by" results

Dieter Menne dieter.menne at menne-biomed.de
Sun Jul 29 13:47:55 CEST 2001

I want to subtract the group minumum of the value in each group
from the indidvidual values, replacing the original values of Press
(something like a groupwise sweep).

This almost works:

                   Chan=as.factor(rep(1:4,6)), Press=rnorm(24) )
by (Press,list(Marker,Chan), function(x) x-min(x))

The data printed out those I need, but how do I
get these back into to PPress?

Dr. Dieter Menne
Biomed Software
72074 Tübingen
Tel (49) (7071) 52176
FAX (49) (7071) 55 10 46
dieter.menne at menne-biomed.de

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list