| type_names | R Documentation |
This method returns the names of the types represented in an object.
type_names(x, ...) ## S3 method for class 'assoc_scores' type_names(x, ...) ## S3 method for class 'freqlist' type_names(x, ...)
x |
An object of any of the classes for which the method is implemented. |
... |
Additional arguments. |
Character vector.
Other getters and setters:
n_tokens(),
n_types(),
orig_ranks(),
ranks(),
tot_n_tokens()
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.