Re: [R] Looking for easy way to normalize data by groups

2009-06-08 Thread hadley wickham
On Mon, Jun 8, 2009 at 10:29 AM, Herbert Jägle wrote: > Hi, > > i do have a dataframe representing data from a repeated experiment. PID is a > subject identifier, Time are timepoints in an experiment which was repeated > twice. For each subject and all three timepoints there are 2 sets of four > va

[R] Looking for easy way to normalize data by groups

2009-06-08 Thread Herbert Jägle
Hi, i do have a dataframe representing data from a repeated experiment. PID is a subject identifier, Time are timepoints in an experiment which was repeated twice. For each subject and all three timepoints there are 2 sets of four values. df <- data.frame(PID = c(rep("A", 12), rep("B", 12),