Skip to content
Prev 68360 / 398506 Next

if(foo == TRUE) .. etc

R FAQ 3.3, bullet #3:

In R, T and F are just variables being set to TRUE and FALSE, respectively,
but are not reserved words as in S and hence can be overwritten by the user.
(This helps e.g. when you have factors with levels "T" or "F".) Hence, when
writing code you should always use TRUE and FALSE. 

If T and F are changed as you suggested above, it will break S compatibility
in lots of code.

Andy