type_names {mclm}R Documentation

Return the names of the types in an object

Description

This method returns the names of the types represented in an object.

Usage

type_names(x, ...)

## S3 method for class 'assoc_scores'
type_names(x, ...)

## S3 method for class 'freqlist'
type_names(x, ...)

Arguments

x

An object of any of the classes for which the method is implemented.

...

Additional arguments.

Value

Character vector.

See Also

Other getters and setters: n_tokens(), n_types(), orig_ranks(), ranks(), tot_n_tokens()

Examples

# for a freqlist object
(flist <- freqlist("The man and the mouse.", as_text = TRUE))

type_names(flist)

# for an assoc_scores object
a <- c(10,    30,    15,    1)
b <- c(200, 1000,  5000,  300)
c <- c(100,   14,    16,    4)
d <- c(300, 5000, 10000, 6000)
types <- c("four", "fictitious", "toy", "examples")

(scores <- assoc_abcd(a, b, c, d, types = types))
type_names(scores)

[Package mclm version 0.2.7 Index]