[R] NA points in loess function

About this list Date view Thread view Subject view Author view Attachment view

From: Yao, Minghua (yao6889@msmailhub.oulan.ou.edu)
Date: Sat 28 Jun 2003 - 01:33:38 EST


Message-id: <FC0CEBD77311DA499A67ADB355A24FA20396AD77@mail4.oulan.ou.edu>

Gurus,

I used
        predict(loess(Y~X));

where Y and X are of the same length. But there are same NA's in both Y and
X. Those NA's are in the same locations in Y and X. The following is the
error messageI got:

Error in "[<-"(*tmp*, , i, value = predict(loess(Y~X))) :
        number of items to replace is not a multiple of replacement length

If I replaced the NA's with a number, the function worked. What I want to do
is to ignores those NA's. help(loess) doesn't say how to give value to
na.action. It just says the default is to stop. Please help. Thank you in
advance.

-Minghua Yao

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Tue 01 Jul 2003 - 09:12:09 EST