[R] error in qr(x)
kjetil brinchmann halvorsen
kjetil at entelnet.bo
Mon May 12 02:45:12 CEST 2003
On 11 May 2003 at 11:59, Spencer Graves wrote:
> df1 <- data.frame(x=c(1:3, NA), y=rnorm(4))
> rlm(y~x, data=df1[!is.na(df1$x),])
or simpler:
> df1 <- data.frame(x=c(1:3, NA), y=rnorm(4))
> rlm(y~x, data=na.omit(df1) )
Kjetil Halvorsen
>
> 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
> >>
> >>
> >
> >
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
More information about the R-help
mailing list