Basic data types in R
R works with numerous data types. Some of the most basic types to get started are:
- Decimal values like
4.5are called numerics. - Natural numbers like
4are called integers. Integers are also numerics. - Boolean values (
TRUEorFALSE) are called logical. - Text (or string) values are called characters.
Note how the quotation marks on the right indicate that "some text" is a character.