There are a few data types in R, including:
- Numeric—decimal numbers.
- Integer—whole numbers.
- Character—a letter, number, or symbol, or any combination of them, enclosed in regular or single quotation marks.
- Factor—categories from a predefined set of possible values, often with an intrinsic order.
- Logical—the Boolean values
TRUE
andFALSE
, represented under the hood as 1 and 0, respectively.
Leave a Reply