as.numericSilent {Smisc} | R Documentation |
Convert any vector to numeric, if possible
as.numericSilent(x)
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
as.numericSilent(c("this","that")) as.numericSilent(c("2893.9","9423.48")) as.numericSilent(c("392.1", "that"))