Description Usage Arguments Value Author(s) See Also Examples
View source: R/as.numericSilent.R
Convert any vector to numeric, if possible
1 |
x |
vector of any type |
If as.numeric(x)
produces an error or warning, x
is
returned unchanged. Otherwise, as.numeric(x)
is returned.
Landon Sego
1 2 3 | as.numericSilent(c("this","that"))
as.numericSilent(c("2893.9","9423.48"))
as.numericSilent(c("392.1", "that"))
|
[1] "this" "that"
[1] 2893.90 9423.48
[1] "392.1" "that"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.