Description Usage Arguments Value Author(s)
Try to convert a value to numeric, and if it throws a warning, return the original value.
1 | try_numeric(x)
|
x |
Value to be converted to numeric |
as.numeric(x)
if successful, or x
if not
Alexey Shiklomanov
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.