Re: [R] ignorable warnings of as.numeric: NAs introduced by coercion

2007-10-17 Thread Prof Brian Ripley
On Wed, 17 Oct 2007, Wolfram Fischer wrote: > Warnings are a good thing and can help to find errors in data. > But with newer R versions I get more and more warnings > which I would like to suppress in defined circumstances. This warning happened in R 1.8.1, for example: it is not new. I don't

[R] ignorable warnings of as.numeric: NAs introduced by coercion

2007-10-17 Thread Wolfram Fischer
Warnings are a good thing and can help to find errors in data. But with newer R versions I get more and more warnings which I would like to suppress in defined circumstances. In the manual of as.numeric() is noticed: as.numeric(c("-.1"," 2.7 ","B")) # (-0.1, 2.7, NA) + warning If I know