powered by
internal function to build an array from a data-frame to have the indices of rows
group_array(d)
a data.frame