Skip to content

tackle with error

3 messages · Mostafa Ghaderi, Dieter Menne, Brian Ripley

#
Dear sir;
may you drop me some idea how can i get rid of following error message:
Error in switch(nmeth, { : NA/NaN/Inf in foreign function call (arg 1)
i dont know what does nmeth and ther rest of error message mean? i have 
a file which contains 460 rows and 174 columns including missing value 
as NA.

Regards,
Mostafa
#
Mostafa Ghaderi <mostafa.ghaderi <at> inw.agrl.ethz.ch> writes:
I assume that you are using R on some silicon-based electric circuit, but 
that's about all I can guess to understand the error message. In what command 
did it occur? Possibly "read.table"? And try 

  traceback()

after the error message. And if it is during read-in of data, shorten your file 
to 3 lines and try again.

Dieter
#
On Fri, 19 Aug 2005, Mostafa Ghaderi wrote:

            

        
Please do read it carefully.

You have not told us what you are doing, nor provided a reproducible 
example.  Using traceback() will tell you where the error message is 
coming from.

Some searching suggests you are using kmeans().  If you have matrix with 
missing values which you pass to kmeans, this is what you will get.  It 
does not accept missing values, so you will have to decide what to do 
about them.