Description Usage Arguments Value See Also Examples
View source: R/corpus_subset.R
Returns subsets of a corpus that meet certain conditions, including direct
logical operations on docvars (document-level variables). corpus_subset
functions identically to subset.data.frame()
, using non-standard
evaluation to evaluate conditions based on the docvars in the corpus.
1 | corpus_subset(x, subset, ...)
|
x |
corpus object to be subsetted |
subset |
logical expression indicating the documents to keep: missing values are taken as false |
... |
not used |
corpus object, with a subset of documents (and docvars) selected according to arguments
1 2 | summary(corpus_subset(data_corpus_inaugural, Year > 1980))
summary(corpus_subset(data_corpus_inaugural, Year > 1930 & President == "Roosevelt"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.