Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

head.textstat_proxy

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.


quanteda.textstats

Textual Statistics for the Quantitative Analysis of Textual Data

v0.94.1
GPL-3
Authors
Kenneth Benoit [cre, aut, cph] (<https://orcid.org/0000-0002-0797-564X>), Kohei Watanabe [aut] (<https://orcid.org/0000-0001-6519-5265>), Haiyan Wang [aut] (<https://orcid.org/0000-0003-4992-4311>), Jiong Wei Lua [aut], Jouni Kuha [aut] (<https://orcid.org/0000-0002-1156-8465>), European Research Council [fnd] (ERC-2011-StG 283794-QUANTESS)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.