Skip to content
Prev 12131 / 398502 Next

by/ NA/ barplot

On Wed, 4 Jul 2001, Jonathan Baron wrote:

            
I've put in a fix for 1.3.1.  Not sure what the intentions were, but if it
worked when ylim was set (for vertical barplots) it should work if it is
unset.
Ouch!  Use is.na(x) not x=="NA".  The first is a proper test for NA or
NaN.  The second coerces to character and tests equality of strings.  This
is slower and not quite the same:
[1]   0   1  NA NaN
[1] FALSE FALSE  TRUE  TRUE
[1] FALSE FALSE  TRUE FALSE