2.4 Objects in R
In R, data types (structure) define the nature of data that can be stored and manipulated. The main data types include numeric, character, logical, factor, array, matrix, data frame, list, function, each serving different purposes in data analysis and programming. Function class
can check the type of a variable in the memory.
Next, we list the simple types first and then illustrate more complex structures in details.