filter.corpus | R Documentation |
Use filter()
to select documents where conditions evaluated on document
variables are true. Documents where the condition evaluates to NA
are
dropped. A tidy replacement for corpus_subset().
## S3 method for class 'corpus'
filter(.data, ..., .preserve = FALSE)
.data |
a quanteda object whose documents will be filtered |
... |
Logical predicates defined in terms of the document variables in
|
.preserve |
Relevant when the |
data_corpus_inaugural %>%
filter(Year < 1810) %>%
summary()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.