Arranging a table in r – pivot? I want to rearrange the table I have. This is what I have (I deleted the data values out of it):