Hi... Please help me with this. In R, if I have this dataframe: id k Age Height 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 minimum age is 18, so I want to create a code that will give me the answer which is 4. Thanks! ~tj -- View this message in context: http://n4.nabble.com/OUTPUT-the-row-tp1644200p1644200.html Sent from the R help mailing list archive at Nabble.com.
> a<-read.table(stdin(),header=TRUE)0: id k Age Height 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-tp1644200p1655832.html Sent from the R help mailing list archive at Nabble.com.