Logical is a mode (and an implicit class) for vectors.
TRUE
, FALSE
and NA
are the only values for logical vectors; and all three are reserved words. T
and F
can be shorthand for TRUE
and FALSE
in a clean R session, but neither T
nor F
are reserved, so assignment of non-default values to those names can set users up for difficulties.