I have a dataframe with 100 rows
I have a column within the dataframe which consists of text.
I would like to separate the text column into sentences so that the text column becomes a list of sentences.
I am splitting with stringi package function stri_split_lines
Example:
rowID text
1 There is something wrong. It is bad. We made it better
2 The sky is blue. The sea is green.
Desired output
rowID text
1 [1] There is something wrong
[2]It is bad.
[3]We made it better
2 [1]The sky is blue.
[2]The sea is green.
I have tried
dataframe<-do.call(rbind.data.frame, stri_split_lines(dataframe$text, omit_empty = TRUE))