I was searching for some approaches to unlist matrices and I think the most efficient and simplest one is
do.call(rbind, matrix_to_unlist)
. I tried it and it works but I have no idea why. rbind()
function is designed to add a row to matrix/data frame so how is this possible to work ? Could you please explain to me what exactly do.call()
is doing with rbind()
function that in output we get matrix unlisted ?