i have multidimensional array
, , 1
[,1] [,2]
[1,] "0" "a"
[2,] "1" "a"
[3,] "1" "b"
[4,] "1" "b"
[5,] "1" "b"
, , 2
[,1] [,2]
[1,] "0" "a"
[2,] "1" "a"
[3,] "1" "b"
[4,] "0" "b"
[5,] "1" "b"
i want to convert my multidimensional array to a table, so i can get table like this
1 0 a
1 1 a
1 1 b
1 1 b
1 1 b
2 0 a
2 1 a
2 1 b
2 0 b
2 1 b
is it possible? i think i can not use the melt function. because this function does not give me the datatable like what i want