Displaying 1 result from an estimated 1 matches for "tp3332703p3332703".
2011 Mar 03
3
What am I doing wrong with this loop ?
...length(x))
y <- as.data.frame(z)
for(i in 1:length(x)) {
y <- ifelse(i < 500, as.data.frame(lowess(x[1:i,1], f=1/9)) ,
as.data.frame(lowess(x[(i-499):i,1], f=1/9)))
z[i] <-y[i,2]
}
--
View this message in context: http://r.789695.n4.nabble.com/What-am-I-doing-wrong-with-this-loop-tp3332703p3332703.html
Sent from the R help mailing list archive at Nabble.com.