[R-gregmisc-commits] r2086 - pkg/gplots/R
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Thu Mar 24 14:31:48 CET 2016
Author: warnes
Date: 2016-03-24 14:31:48 +0100 (Thu, 24 Mar 2016)
New Revision: 2086
Modified:
pkg/gplots/R/lowess.R
Log:
Remove observations with missing values when lowess is called using the formula interface.
Modified: pkg/gplots/R/lowess.R
===================================================================
--- pkg/gplots/R/lowess.R 2016-03-24 13:30:02 UTC (rev 2085)
+++ pkg/gplots/R/lowess.R 2016-03-24 13:31:48 UTC (rev 2086)
@@ -44,6 +44,8 @@
mf <- mf[s, ]
}
+ mf <- na.omit(mf)
+
response <- attr(attr(mf, "terms"), "response" )
lowess.default(mf[[-response]], mf[[response]], f=f, iter=iter, delta=delta)
}
More information about the R-gregmisc-commits
mailing list