[R] error in qr(x)

Spencer Graves spencer.graves at pdf.com
Sun May 11 20:59:35 CEST 2003


df1 <- data.frame(x=c(1:3, NA), y=rnorm(4))
rlm(y~x, data=df1[!is.na(df1$x),])

hth.  spencer graves

Martin Wegmann wrote:
 > Hello,
 > how do I remove Na's in R? Or did you mean to remove them before I 
load them
 > into R? But I can't remove them totally because it is a series, I can
 > interpolate them (command?)
 >
 > cheers, Martin.
 >
Spencer Graves wrote:
> Have you tried removing the NA's beforecalling "rlm"?
> 
> hth.  spencer graves
> 
> Martin Wegmann wrote:
> 
>> Hello,
>> I get the following prompt when tring to compute rlm:
>>
>>
>>> x<-rlm(core.e, na.action=na.omit)
>>> Error in qr(x) : NA/NaN/Inf in foreign function call (arg 1)
>>
>>
>>
>> I checked with is.finite and is.infinite but in both cases i get FALSE 
>> and my missing values are substituted by NA.
>> what does this error prompt mean and how do I solve it?
>>
>> thanks in advance, cheers Martin
>>
>>
> 
>




More information about the R-help mailing list