n_tokens {mclm} | R Documentation |
Count tokens
Description
This method returns the number of tokens in an object.
Usage
n_tokens(x, ...)
## S3 method for class 'freqlist'
n_tokens(x, ...)
## S3 method for class 'tokens'
n_tokens(x, ...)
Arguments
x |
An object of any of the classes for which the method is implemented. |
... |
Additional arguments. |
Value
A number.
See Also
Other getters and setters:
n_types()
,
orig_ranks()
,
ranks()
,
tot_n_tokens()
,
type_names()
Examples
(tks <- tokenize("The old man and the sea."))
n_tokens(tks)
(flist <- freqlist(tks))
n_tokens(flist)
n_types(flist)
[Package mclm version 0.2.7 Index]