select.corpus | R Documentation |
Select (and optionally rename) document variables in a data frame, using a
concise mini-language that makes it easy to refer to variables based on their
name (e.g. a:f
selects all columns from a
on the left to f
on the
right). You can also use predicate functions like is.numeric
to select
variables based on their properties.
## S3 method for class 'corpus'
select(.data, ...)
.data |
a quanteda object with document variables |
... |
< |
For an overview of selection features, see dplyr::select()
.
data_corpus_inaugural %>%
select(Party, Year) %>%
summary(n = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.