Re: [R] Transform data for repeated measures

2009-08-28 Thread David Winsemius
Patrick; You got two helpful suggestions for where to start your learning how to reshape your data. I am going to admit that I have recurring difficulty using either reshape() or the functions in the reshape package. It undoubtedly reflects some sort of constricted abstraction capability

Re: [R] Transform data for repeated measures

2009-08-28 Thread Henrique Dallazuanna
Using reshape you can try this: reshape(resp.df, direction = long, idvar=patient, varying = list(grep(fev, names(resp.df On Thu, Aug 27, 2009 at 8:37 PM, Richardson, Patrick patrick.richard...@vai.org wrote: I have a dataset that I'm trying to rearrange for a repeated measures analysis:

Re: [R] Transform data for repeated measures

2009-08-28 Thread hadley wickham
On Thu, Aug 27, 2009 at 6:37 PM, Richardson, Patrickpatrick.richard...@vai.org wrote: I have a dataset that I'm trying to rearrange for a repeated measures analysis: It looks like: patient basefev1 fev11h fev12h fev13h fev14h fev15h fev16h fev17h fev18h drug 201     2.46   2.68   2.76  

[R] Transform data for repeated measures

2009-08-27 Thread Richardson, Patrick
I have a dataset that I'm trying to rearrange for a repeated measures analysis: It looks like: patient basefev1 fev11h fev12h fev13h fev14h fev15h fev16h fev17h fev18h drug 201 2.46 2.68 2.76 2.50 2.30 2.14 2.40 2.33 2.20a 202 3.50 3.95 3.65 2.93 2.53 3.04

Re: [R] Transform data for repeated measures

2009-08-27 Thread Rolf Turner
?reshape On 28/08/2009, at 11:37 AM, Richardson, Patrick wrote: I have a dataset that I'm trying to rearrange for a repeated measures analysis: It looks like: patient basefev1 fev11h fev12h fev13h fev14h fev15h fev16h fev17h fev18h drug 201 2.46 2.68 2.76 2.50 2.30 2.14

Re: [R] Transform data for repeated measures

2009-08-27 Thread Bert Gunter
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Richardson, Patrick Sent: Thursday, August 27, 2009 4:37 PM To: r help Subject: [R] Transform data for repeated measures I have a dataset that I'm trying to rearrange for a repeated