Skip to content
Prev 86339 / 398503 Next

search algorithm

thanks a lot for the help. I tried some stuff and now it works.

____________________
Ita Cirovic-Donev
Risk Controlling

HYPO ALPE-ADRIA-BANK D.D.
Amruseva 6, HR-10000 Zagreb
Phone:      +385 1 4899 269
Fax:  +385 1 6063 344
E-Mail:     ita.cirovic-donev at hypo-alpe-adria.com
Web:  www.hypo-alpe-adria.hr



                                                                           
             Don MacQueen                                                  
             <macq at llnl.gov>                                               
                                                                        To 
             13.02.2006 16:38             Ita.Cirovic-Donev at hypo-alpe-adri 
                                          a.com, r-help at stat.math.ethz.ch  
                                                                        cc 
                                                                           
                                                                   Subject 
                                          Re: [R] search algorithm         
                                                                           
                                                                           
                                                                Importance 
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




There is a function in the Hmisc package that will help.

Example:
[1] 0.1225542 0.1620869 0.2197772 0.3187375 0.5498879 0.5644445
0.5812717 0.7380532 0.8187384 0.9063713
[1] 4
[1] 0.3187375

Or for your matrix (yourmat), this should work (but I haven't tested it)

    yourmat[ whichClosest(yourmat[,'X'] , -0.6523) , 'Y']

-Don
At 1:30 PM +0100 2/13/06, Ita.Cirovic-Donev at hypo-alpe-adria.com wrote:
finds
value.
http://www.R-project.org/posting-guide.html


--
--------------------------------------
Don MacQueen
Environmental Protection Department
Lawrence Livermore National Laboratory
Livermore, CA, USA