R Data Types
R supports the following data types.
Vectors
A vector is an ordered set of elements of the same type.
Lists
A list is an ordered set of elements that may be of different types.
Factors
A factor assigns a categorical variable to each distinct element in a vector.
Matrices
A matrix is a data structure with two or more dimensions, used to store elements of the same type.
Data Frames
A data frame stores data in a table format. Each column in the data frame may be accessed by either its name or position.