Hello everyone. Hope you all are doing fine. I need some help regarding Stata commands. I want to deal with duplicates in my dataset. I have two rows with unique information belonging to one LSS-ID. Now I want to convert the second row data of the LSS ID into colums and append it. Next to row 1 columns as columns. Please help.



For example:
I want row 92 observations in front of row 91 last column so that there is only one row for one LSS ID

Array