[R] The use of F for False and T for True

hadley wickham h.wickham at gmail.com
Mon Nov 17 14:03:31 CET 2008


On Sun, Nov 16, 2008 at 7:41 PM, Simon Blomberg <s.blomberg1 at uq.edu.au> wrote:
> It is better programming practice to use FALSE for false and TRUE for
> true, and not F and T. This is because it is quite legal to do this:
>
> T <- FALSE
> F <- TRUE

It may be better programming practice, but is it better interactive
data analysis practice?  R isn't just a programming language, and
there are lots of good reasons to provide shortcuts that reduce
typing.  It's very easy to forget that most people can't touch type at
a decent speed, and every key press less helps them get their ideas
from their head to the computer faster.

Hadley

-- 
http://had.co.nz/



More information about the R-help mailing list