The logical class

Download r eBook


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.

Related Examples


13 Contributors: 1
Tuesday, February 7, 2017
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial:

Download eBook