What is the meaning of this message?
Warning message:
Realizando coerção de LHD para uma lista
I tried to do something like this:
test <- function(x) {
rval <- NULL
m <- mean(x)
s <- sd(x)
rval$m <- m
rval$s <- s
y <- x[abs(x - m) > 3 * s]
rval$y <- y # this is the critical line
return(rval)
}
except that in the example above the critical line does not give
any error, while in the real (much bigger) example it does, for
things like:
test(c(runif(100), 100))
Alberto Monteiro
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.