[R] first 3 minimums

Martin Wegmann mailinglist2_wegmann at web.de
Sat Nov 1 14:05:58 CET 2003


Hello, 

I have a df with plots (60) and their distances to bores (20) and would like 
to compute the three minimum distances to bores of each plot. 

with 
>apply(df, 2, min) 
I get the overall min, but is there a way to get additionally to the first 
min, the second and third minimum distance?

thanks in advance, cheers Martin




More information about the R-help mailing list