I am struggling to order column in my dataset. The way I want to reorder can be shown in the following example:
I have the following data:
dd = data.frame("AssignedA"=1:2, "AverageA"=1, "AssignedB"=1, "AverageB"=1,
"AssignedC"=1, "AverageC"=1, "ValueA"=1, "ValueB"=1, "ValueC"=1)
For an easy overview, I would like the columns to be ordered in the following way:
Assigned A - Assigned B - Assigned C - Average A - Average B - Average C- Value A - Value B - Value C
How to do this? I couldn't find the solution in questions posted earlier.