Re: [R] OUTPUT the row

2010-03-20 Thread tj
Thank you very much for the big help! From: GlenB [via R] Sent: Sat, March 20, 2010 1:23:50 AM Subject: Re: OUTPUT the row > a<-read.table(stdin(),header=TRUE) 0: id kAgeHeight 1: 23 2 23 60 2: 12 3 28 58 3:

[R] OUTPUT the row

2010-03-20 Thread tj
Hi... Please help me with this. In R, if I have this dataframe: id kAgeHeight 23 2 23 60 12 3 28 58 19 4 18 55 37 5 22 54 My question is, I want to get the value of k that has the minimum age. So in this dataframe, the minimu

Re: [R] OUTPUT the row

2010-03-19 Thread GlenB
> a<-read.table(stdin(),header=TRUE) 0: id kAgeHeight 1: 23 2 23 60 2: 12 3 28 58 3: 19 4 18 55 4: 37 5 22 54 5: > with(a,k[Age==min(Age)]) [1] 4 -- View this message in context: http://n4.nabble.com/OUTPUT-the-row-tp1644200p