Re: [R] Need help for loop code, thanks

2010-10-07 Thread jim holtman
you can use sqldf: > dat = read.table(textConnection('V1V2 v3 + + 1 a 1.3 + 1 a 1.5 + 1 b 2.0 + 1 a 2.3 + 1 a 3.4 + 1 c 5.5 + 1 d 6.0 + 1 a 7.0 + 2 f1.5 + 2 g1.6 + 2

Re: [R] Need help for loop code, thanks

2010-10-07 Thread Peter Ehlers
On 2010-10-07 12:09, Phil Spector wrote: Is this what you're looking for? dat = read.table(textConnection('V1V2 v3 + 1 a 1.3 + 1 a 1.5 + 1 b 2.0 + 1 a 2.3 + 1 a 3.4 + 1 c 5.5 + 1 d 6.0 + 1 a 7.0 + 2

Re: [R] Need help for loop code, thanks

2010-10-07 Thread Phil Spector
Is this what you're looking for? dat = read.table(textConnection('V1V2 v3 + 1 a 1.3 + 1 a 1.5 + 1 b 2.0 + 1 a 2.3 + 1 a 3.4 + 1 c 5.5 + 1 d 6.0 + 1 a 7.0 + 2 f1.5 + 2 g1.6 +

[R] Need help for loop code, thanks

2010-10-07 Thread wangguojie2006
Dear fellows, I've been working this problem for a day and still can't see where the problem is. I really appreciate if anyone can help me out. My data is like: V1V2 v3 1 a 1.3 1 a 1.5 1 b 2.0 1 a 2.3 1 a 3.4 1 c 5.5 1