head.textstat_proxy {quanteda.textstats} | R Documentation |
Return the first or last part of a textstat_proxy object
Description
For a similarity or distance object computed via textstat_simil or
textstat_dist, returns the first or last n
rows.
Usage
## S3 method for class 'textstat_proxy'
head(x, n = 6L, ...)
## S3 method for class 'textstat_proxy'
tail(x, n = 6L, ...)
Arguments
x |
a textstat_simil/textstat_dist 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. |
... |
unused |
Value
A matrix corresponding to the subset defined
by n
.
[Package quanteda.textstats version 0.97 Index]