I have an object created from an rtf document using the code:sample_doc <- read_rtf("sample.doc")
(I had to use read_rtf because the document is actually an rtf).
I know somewhere in the document there are two phrases (an element in the character vector) apple
and orange
and that there must be an element in between them. I just want to extract that in-between element. What should I do?
Thanks!