I have several documents and do not need the first sentence of each document. I could not find a solution so far.
Here is an example. The structure of the data looks like this
case_number | text |
---|---|
1 | Today is a good day. It is sunny. |
2 | Today is a bad day. It is rainy. |
So the results should look like this
case_number | text |
---|---|
1 | It is sunny. |
2 | It is rainy. |
Here is the example dataset:
case_number <- c(1, 2)
text <- c("Today is a good day. It is sunny.",
"Today is a bad day. It is rainy.")
data <- data.frame(case_number, text)