A three-dimensional (r c h) object (think of a collection of stacked r c matrices) is an array. An array's elements must all be of the same data type (character, numeric, or logical). A dataframe is a (r c h) two-dimensional object (like a matrix).