I have an odd task. My data is below. Basically I want to get everything shifted so that it appears under v2 and v3, so that it looks more like a table. So v2 would have "yellow" for behavior, v3 would have "green" for behavior, and so on. The actual data is far larger so some type of loop would be ideal--I could do it manually with this small example but I have something like 100 total variables and 20 types under v1.
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str10 v1 str3 v2 str4 v3 str6 v4 str5 v5 str6 v6 str4 v7 str5(v8 v9) "test_score" "red" "blue" "" "" "" "" "" "" "behavior" "" "" "yellow" "green" "" "" "" "" "school" "" "" "" "" "orange" "pink" "" "" "teach" "" "" "" "" "" "" "white" "black" end
Comment