Description Usage Arguments Value Examples
View source: R/corpus-methods-base.R
For a corpus object, returns the first or last n
documents.
1 2 3 4 5 |
x |
a dfm object |
n |
a single integer. If positive, the number of documents for the resulting object: number of first/last documents for the dfm. If negative, all but the n last/first number of documents of x. |
... |
additional arguments passed to other functions |
A corpus class object corresponding to the subset defined
by n
.
1 2 3 4 5 | head(data_corpus_inaugural, 3) %>%
summary()
tail(data_corpus_inaugural, 3) %>%
summary()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.