I'm wondering if there is a way to transpose two variables at once using proc transpose... but one variable would essentially be transposed as the column names... Or can you utilize prefix= to call on an existing variable to name the columns?
My data looks like so:
Site_ID S1_6_tot Quarter_Year
1 35 Q1 2017
1 45 Q2 2017
1 81 Q3 2017
1 126 Q4 2017
Essentially I would like the pertinent Quarter Year to be the name of the column and have the S1_6_tot number the column value like:
Site_ID Q1_2017 Q2_2017 Q3_2017 Q4_2017
1 35 45 81 126
Thanks!