relocate.corpus | R Documentation |
Use relocate()
to change the column positions of document variables, using
the same syntax as select() to make it easy to move blocks
of columns at once.
## S3 method for class 'corpus'
relocate(.data, ...)
.data |
A data frame, data frame extension (e.g. a tibble), or a lazy data frame (e.g. from dbplyr or dtplyr). See Methods, below, for more details. |
... |
< |
data_corpus_inaugural %>%
relocate(President, Party) %>%
summary(n = 5)
data_corpus_inaugural %>%
relocate(FirstName, President, .before = Year) %>%
summary(n = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.