[R] Smoothing

David Winsemius dwinsemius at comcast.net
Tue Apr 13 20:24:02 CEST 2010


On Apr 13, 2010, at 10:58 AM, Danai Katsande wrote:

>>
>> I am trying to plot a smoothing spline to using the following code,  
>> and an
>> error pops up:
>>
>>> car <- read.table("car.csv",sep=",",header=T)
>>> attach(car)
>>> names(car)
>> [1] "veh_value" "exposure"  "clm"       "numclaims" "claimcst0"  
>> "veh_body"
>>
>> [7] "veh_age"   "gender"    "area"      "agecat"    "X_OBSTAT_"
>>
>>> plot( log(veh_value), claimcst0, ylim=c(0,10000))
>>> smooth.spline( log(veh_value), claimcst0)
>> Error in smooth.spline(log(veh_value), claimcst0) :
>>  NA/NaN/Inf in foreign function call (arg 3)
>> ### What does this error mean> I do not get it??

Looks too much like coursework. (Not to mention having inadequate  
details for a conclusive answer.) You may want to read the Posting  
Guide for a more complete understanding of why I am responding in this  
unhelpful fashion.

-- 
David.



More information about the R-help mailing list