as_numeric {mclm} | R Documentation |
Coerce object to a numeric vector
Description
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()
.
Usage
as_numeric(x, ...)
## Default S3 method:
as_numeric(x, ...)
Arguments
x |
An object to coerce. |
... |
Additional arguments. |
Value
A numeric vector.
Examples
(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)
[Package mclm version 0.2.7 Index]