Array and matrix/tables are data structures in R with same data types such as numeric, string or boolean. This examples show how to convert a list of vector/matrix/array into a multi-dimentional array so that it will become easier to aggregate them in particular dimension. We can also do this converting everything into data frame but this way can be useful sometimes and is worth learning.
Let us use a dataset already available in R and convert that into a list of tables or matrix. Here I will use Titanic dataset and convert it into a nested list of array using purrr package.