Skip to content
Prev 44486 / 398528 Next

NAs introduced by coercion warning?

Jonathan Greenberg wrote:

            
My guess would be you're trying to convert from character to numeric and 
are unable to do so. As in,

 > as.numeric("A")
[1] NA
Warning message:
NAs introduced by coercion
 > as.numeric("1")
[1] 1
 >

But without more information from you it's impossible to tell.

See the posting guide at

http://www.R-project.org/posting-guide.html

Regards,
Sundar