as.list.dist: Coerce a dist object into a list

Description Usage Arguments

View source: R/textstat_dist_old.R

Description

Coerce a dist matrix into a list of selected target terms and similar terms, in descending order of similarity. Can be used after calling textstat_simil or textstat_dist.

Usage

1
2
## S3 method for class 'dist'
as.list(x, sorted = TRUE, n = NULL, ...)

Arguments

x

dist class object

sorted

sort results in descending order if TRUE

n

the top n highest-ranking items will be returned. If n is NULL, return all items.

...

unused


quanteda/quanteda documentation built on Feb. 16, 2019, 5:45 a.m.