Usage Arguments Details Value Examples
1 | rmNonNumeric(x, other = list("oO", ","), fw = list(0, ""))
|
x |
a string vector |
other |
list of extra symbols to be replaced with |
fw |
list. Must be compatible with |
remove non-numeric symbols as commas, semicolons, white space between numbers, and changes the letters "o" and "O" by zeros (0). String characters coerce them to NA's
a numeric vector or a error mesage if still non-numeric symbols remaining
1 2 3 | xe <- c("2,000", "4 5 6", "300OOoo", "4.4", "abc", "ab1")
rmNonNumeric(xe)
rmNonNumeric(xe, other = list("oO", ","), fw = list(0, ""))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.