As discussed in Chapter 3, Data Wrangling with R, there are five data types in R:
- Character: For string values
- Numeric: For numbers with decimal places (for example, 1.2, 3.45, and so on)
- Integer: For whole numbers (for example, 1, 2, 3, and so on)
- Logical: For Boolean values, TRUE and FALSE
- Complex: For numbers that have an imaginary component (for example, 5 + 3i)
It is useful to note here that in R, categorical values are generally represented as factors. When reading ...