Skip to content
Prev 279369 / 398506 Next

equating approximate values

On Dec 5, 2011, at 8:02 AM, R. Michael Weylandt wrote:

            
The arrayInd help page is shared by the which help and which has an  
arr.ind=TRUE option that let's you encapsulate both steps:

which( abs(outer(x, y, "-")) == min(abs(outer(x, y, "-"))),  
arr.ind=TRUE)
David Winsemius, MD
West Hartford, CT