[R] handling warning messages
Sigal Blay
sblay at sfu.ca
Thu Mar 16 05:43:02 CET 2006
Is there any way to store the value of warnings but avoid printing them?
A simplified example:
> out <- c(0.2,0.3,0.4)
> var <- c(2,3,4)
> outcome <- glm(out ~ var, family=binomial())
Warning message:
non-integer #successes in a binomial glm! in: eval(expr, envir, enclos)
I don't like the warning printed,
but I would like to be able to check it's value after the top-level function
has completed and than decide weather to print it or not.
Thanks,
Sigal Blay
Statistical Genetics Working Group
Department of Statistics and Actuarial Science
Simon Fraser University
More information about the R-help
mailing list