Skip to content

enty-wise closest element

1 message · John Kane

#
Is it not giving you the location of the minimum value not the value?

See
ind1<-c(1,4,10)
ind2<-c(3,5,11)

i=3
(ind1-ind2[i])
(aa <- abs(ind1-ind2[i]))
which.min(aa)
--- On Sun, 1/17/10, Andreas Wittmann <andreas_wittmann at gmx.de> wrote:

            
__________________________________________________________________
Get a sneak peak at messages with a handy reading pane with All new Yahoo! Mail: http://ca.promos.yahoo.com/newmail/overview2/