Search notes:

R data structures

All R objects are built upon the native data structures:
Which data structure should be used depends on the data's dimensionality and if it consists of a single data type or multiple data types:
Dimensions Single data type Multiple data types
1 (Atomic) vector list
2 matrix data frame
3 or more array n/a
Note: the matrix is just a special case of an array. In fact, the array and matrix are just special cases of an atomic vector.

See also

The lobstr package has a set of tools for inspecting and understanding R data structures.

Index