Learn R Programming

wordmap (version 0.9.5)

coef.textmodel_wordmap: Extract coefficients from a Wordmap model

Description

coef() extracts top n features with largest coefficients for each class.

Usage

# S3 method for textmodel_wordmap
coef(object, n = 10, select = NULL, ...)

# S3 method for textmodel_wordmap coefficients(object, n = 10, select = NULL, ...)

Value

Returns a list of named numeric vectors sorted in descending order.

Arguments

object

a model fitted by textmodel_wordmap().

n

the number of coefficients to extract.

select

returns the coefficients for the selected class; specify by the names of rows in object$model.

...

not used.