Learn R Programming

wordmap (version 0.9.5)

as.dictionary.textmodel_wordmap: Create lexicon from a Wordmap model

Description

as.list() returns features with the largest coefficients as a list of character vector. as.dictionary() returns a quanteda::dictionary object that can be use for dictionary analysis.

Usage

# S3 method for textmodel_wordmap
as.dictionary(x, separator = NULL, ...)

# S3 method for textmodel_wordmap as.list(x, ...)

Value

Returns a list or a quanteda::dictionary object.

Arguments

x

a model fitted by textmodel_wordmap().

separator

the character in between multi-word dictionary values. If NULL, x$concatenator will be used.

...

passed to coef.textmodel_wordmap