Given a tabulated dataset (or matrix) this will untabulate it
untable(df, num)
df
num
Hadley Wickham <h.wickham@gmail.com>