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

Peter Dalgaard P.Dalgaard at biostat.ku.dk
Mon Nov 17 11:56:08 CET 2008

Rolf Turner wrote:
> On 17/11/2008, at 1:56 PM, David C. Howell wrote:
>> Sampling with and without replacement
>> I seem unable to use "replace = F" when I want to sample without
>> replacement. I would think
>> that it comes down to "F is not a legitimate abbreviation for FALSE."
>> except that
>> Dalgaard (p. 118) uses F for FALSE and it works
>>  "pairwise.t.test(folate, ventilation, pool.sd = F)"

> (a) Naughty Peter.  It works, but is ill-advised.  The difference is
> that FALSE is a reserved word (as is TRUE) but F and T are *not* reserved.

Yeah I know, tell users to type until their fingers fall off... In my
defense the point is actually made on p.12 (both editions) and can be
found via "FALSE" in the index.

   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark      Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)              FAX: (+45) 35327907

More information about the R-help mailing list