df_to_array function

Convert a data.frame (or tibble) into a multidimensional array