[R] Error: NA/NaN/Inf in foreign function call (arg 1)
splante at globetrotter.net
Fri Jun 14 17:20:08 CEST 2002
I have a huge data table with several variables containing missing values. I
want to make a simple scatter plot (Mass, HSI) and draw a smooth regression
Here are the summaries of these two variables:
Min. 1st Qu. Median Mean 3rd Qu. Max.
46.0 205.9 272.5 282.6 348.3 610.1
Min. 1st Qu. Median Mean 3rd Qu. Max. NA's
0.300 1.045 1.350 1.491 1.835 4.270 13.000
So there are 13 missing values in HSI.
and it worked fine. However, when I wanted to draw the smooth regression,
I got this error:
Error: NA/NaN/Inf in foreign function call (arg 1)
I did not forgot to load the package modreg...
Must I declare the "NAs" before doing this analysis? If so, how?
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help