For example, col1, col2 are column names, r1, r2 are row names, liek this:
col1 col2
r1 1 4
r2 2 5
Is there a function in Base or plyrto transform it to the following form(3-column data.frame)?
r1 col1 1
r1 col2 4
r2 col1 2
r2 col2 5
Thanks!
Just found it.
meltfunction can do it.