thanks for help,

I have a data.frame "newData" with 7 columns and 91 rows. i wish to find the
row in the second column "X" with the max value and save all 7 values (=all
columns) in a new data.frame

 # max value result for row
 Max.Result <- max(newData$result)
 select the row with the max value
 row <- which(Max.Result  == max(Max.Result ))
 BestResult_R <- newData[row,]

but I have a same problems to set right the code.

thanks

Gianni

        [[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Reply via email to