Description Usage Arguments Value Examples
For a dfm object, returns the first or last n
documents
and first nfeat
features.
1 2 3 4 5 |
x |
a dfm object |
n |
a single, positive integer. If positive, size 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. |
nf |
the number of features to return, where the resulting object
will contain the first |
... |
additional arguments passed to other functions |
A dfm class object corresponding to the subset defined
by n
and nfeat
.
1 2 3 4 5 | head(data_dfm_lbgexample, 3, nf = 5)
head(data_dfm_lbgexample, -4)
tail(data_dfm_lbgexample)
tail(data_dfm_lbgexample, n = 3, nf = 4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.