We continue to discuss data structures in R, this time focusing on arrays. An array is a generalization of a matrix with an arbitrary number of dimensions. We illustrate the structure with a three dimensional array. We show how to create an object of this structure with the array() function and to assign names to its dimensions. While watching this video you, should open
Mod10Script.R and follow along with Example 4.
Arrays are useful and you should know what they are and how to construct them. But they are not as common or important as the other data structures covered in this module, so you may skip this video if you wish and then come back to it when you wish to learn more.