R TutorialLesson 11Free preview
R Booleans
This lesson is part of R · All levels
Summary
This lesson is a peek at the logical data type (Boolean) in R. The logical value in R is represented by TRUE (or abbreviated T) and FALSE (or abbreviated F). The developer will study the results of evaluating the condition expression and the logic operator as well as the NA (Not Available) special values that represent the missing data.
Key points
- Logical values are represented by the built-in constants 'TRUE' and 'FALSE'
- Can be abbreviated to 'T' and 'F' (although writing the full version is more recommended)
- The comparison operator produces a logical-type value
- The 'NA' value is used to represent the missing value in statistical data.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.