search for: ob7

Displaying 2 results from an estimated 2 matches for "ob7".

Did you mean: db7
2009 Jul 07
1
ReShape to create Time from Observations?
Here is a couple of very simple data.frames: X<-data.frame(A=1:10, B=0, C=1, Ob1=1:10, Ob2=2:11, Ob3=3:12, Ob4=4:13, Ob5=3:12, Ob6=2:11) Y<-data.frame(A=1:20, B=0, C=1, D=5, Ob1=1:10, Ob2=2:11, Ob3=3:12, Ob4=4:13, Ob5=3:12, Ob6=2:11, Ob7=5:9) Z<-data.frame(A=1:30, B=0, C=1, D=6, E=1:2, Ob1=1:10, Ob2=2:11, Ob3=3:12, Ob4=4:13, Ob5=3:12, Ob6=2:11, Ob7=1:10, Ob8=3:12) Each row in the data.frame is a unique experiment. The fields Ob1:Ob6 (in the case of the first data.frame) represent observations taken at fixed intervals for specif...
2009 Jul 09
2
How to Populate List
...oes something like this work for you; ?it uses the reshape package: > >> X<-data.frame(A=1:10, B=0, C=1, Ob1=1:10, Ob2=2:11, Ob3=3:12, > + Ob4=4:13, Ob5=3:12, Ob6=2:11) >> Y<-data.frame(A=1:20, B=0, C=1, D=5, Ob1=1:10, Ob2=2:11, Ob3=3:12, > + Ob4=4:13, Ob5=3:12, Ob6=2:11, Ob7=5:9) >> Z<-data.frame(A=1:30, B=0, C=1, D=6, E=1:2, Ob1=1:10, Ob2=2:11, > + Ob3=3:12, Ob4=4:13, Ob5=3:12, Ob6=2:11, Ob7=1:10, Ob8=3:12) >> >> f.melt <- > + function(df) > + { > + ? ? # get the starting column number of "Ob1", then extend for rest of col...