Quick recap of the main object types in R from Advanced R: homogeneous heterogeneous 1-d atomic vector list 2-d matrix data.frame n-d array ??? So, objects can either store only data of the same type or of any type, and they can have 1, 2 or any number of dimensions. Note that there is a missing cell. But actually, all the object types in the right column are lists. Data.frames are lists that look and behave like matrices in some ways. So, if we can make a list behave like a matrix, can we make a list behave like an n-dimensional array? Yes: list-arrays.
Making use of list-arrays in R
Making use of list-arrays in R
Making use of list-arrays in R
Quick recap of the main object types in R from Advanced R: homogeneous heterogeneous 1-d atomic vector list 2-d matrix data.frame n-d array ??? So, objects can either store only data of the same type or of any type, and they can have 1, 2 or any number of dimensions. Note that there is a missing cell. But actually, all the object types in the right column are lists. Data.frames are lists that look and behave like matrices in some ways. So, if we can make a list behave like a matrix, can we make a list behave like an n-dimensional array? Yes: list-arrays.