Split a huge dataframe in many smaller dataframes to create a corpus in r
问题 I need to create a corpus from a huge dataframe (about 170.000 rows, but only two columns) to mine some text and group by usernames according to to the search terms. For example I start from a dataframe like this: username search_term name_1 "some_text_1" name_1 "some_text_2" name_2 "some_text_3" name_2 "some_text_4" name_3 "some_text_5" name_3 "some_text_6" name_3 "some_text_1" [...] name_n "some_text_n-1" And I want to obtain: data frame 1 username search_term name_1 "some_text_1" name_1