Re: [R] help with handling replicates before reshaping data

2007-07-13 Thread hadley wickham
Hi Tom, > I have a dataset consists of duplicated sequences within day for each > patient (see below data) and I want to reshape the data with patient as time > variable. However the reshape function only takes the first sequence of the > replicates and ignores the second. How can I 1) averag

[R] help with handling replicates before reshaping data

2007-07-13 Thread Tom Cohen
Dear list, I have a dataset consists of duplicated sequences within day for each patient (see below data) and I want to reshape the data with patient as time variable. However the reshape function only takes the first sequence of the replicates and ignores the second. How can I 1) average the