Description Usage Arguments Value Examples
View source: R/helper_functions.R
Convert vectors (including factors) to numeric.
1 |
var |
A vector. Can be a factor. |
Returns var
as a numeric vector.
Numeric vector.
1 2 | as_numeric(c("1", "2", "3"))
as_numeric(factor(c("1", "2", "3")))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.