| n_tokens | R Documentation |
This method returns the number of tokens in an object.
n_tokens(x, ...) ## S3 method for class 'freqlist' n_tokens(x, ...) ## S3 method for class 'tokens' n_tokens(x, ...)
x |
An object of any of the classes for which the method is implemented. |
... |
Additional arguments. |
A number.
Other getters and setters:
n_types(),
orig_ranks(),
ranks(),
tot_n_tokens(),
type_names()
(tks <- tokenize("The old man and the sea."))
n_tokens(tks)
(flist <- freqlist(tks))
n_tokens(flist)
n_types(flist)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.