Dear Stata users
I am analysis speeches and have imported txt files into stata. However, each txt file has been imported with multiple rows and I need it one row per speech (txt file) in order to carry out text analysis. I have spent today and yesterday reading the forum and trying out some of the code provided by answers similar to this thread but have got nowhere. Would someone be able to help me put all the text from multiple rows for each speech into one observation/cell please?
Here is an example of my data. I have 26 speeches (id)

NB: Tried to use dataex to show my problem but there were too many characters even after specifying fewer observations.
Many thanks
I am analysis speeches and have imported txt files into stata. However, each txt file has been imported with multiple rows and I need it one row per speech (txt file) in order to carry out text analysis. I have spent today and yesterday reading the forum and trying out some of the code provided by answers similar to this thread but have got nowhere. Would someone be able to help me put all the text from multiple rows for each speech into one observation/cell please?
Here is an example of my data. I have 26 speeches (id)
NB: Tried to use dataex to show my problem but there were too many characters even after specifying fewer observations.
Many thanks
Comment