Pull out content of a tm corpus and call gregexpr on that content represented as a list of character strings.
tm_gregexpr(pattern, corpus, ignore.case = FALSE, perl = FALSE,
fixed = FALSE, useBytes = FALSE)
See gregexpr
Either a character vector or tm Corpus object.
See gregexpr
See gregexpr
See gregexpr
See gregexpr
This method gives results exactly as if gregexpr
were called on the Corpus
represented as a list of strings.
See gregexpr.
If 'corpus' is already a character vector, it just calls gregexpr with no fuss (or warning).
gregexpr