| as_numeric | R Documentation |
This generic method turns its first argument x or at least part of the information
in it into a numeric object. It is an alternative notation for base::as.numeric().
as_numeric(x, ...) ## Default S3 method: as_numeric(x, ...)
x |
An object to coerce. |
... |
Additional arguments. |
A numeric vector.
(flist <- freqlist(tokenize("The old story of the old man and the sea.")))
# extract frequency counts from a frequency list
as_numeric(flist)
as.numeric(flist)
# preferable alternative
type_freqs(flist)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.