Description Usage Arguments Details Value Examples
View source: R/subset_corpus.R
subset_corpus
returns the works in a corpus whose texts include all of the words (or match the stringi-search-regex) specified in the 'pattern' argument.
1 | subset_corpus(corpus, pattern)
|
corpus |
A dataframe representing a corpus of downloaded texts generated by |
pattern |
A character string (or vector) containing a series of words or a stringi-search-regex. |
subset_corpus
returns the works in a corpus whose texts include all of the words (or match the stringi-search-regex) specified in the 'pattern' argument. It can therefore be used to identify a subset of the corpus that is of particular interest.
A dataframe
1 2 3 4 | ## Not run:
miasma_yf <- subset_corpus(yf_corpus, "miasma")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.