I have an excel table of speeches with the columns doc_id
, speaker
, text
where every paragraph of each speech is in a single row. How can I merge the rows with the same doc_id
(each speech has its own doc_id
) that the whole speech is in one row in the text column?
I have a Windows server running R. I tried the dplyr
package to summarize the rows with the same content and I read about merging in other threads, but there is only merging rows while create new columns.
actual result
doc_id speaker text
7001 x Hello again,
7001 x I want to speak about
7002 y Ladies and Gentlemen,
7002 y My research is about
expected result
doc_id speaker text
7001 x Hello again, I want to speak about
7002 y Ladies and Gentlemen, My research is about