Description Usage Arguments Value Functions Examples
Takes a character vector and returns a logical vector of the same length,
indicating which values are numeric. NA
is considered non-numeric. NA
is
never returned from this function.
1 2 3 | is_numeric_str(x, extras = c(".", "NA", NA))
areNumeric(x, extras = c(".", "NA", NA))
|
x |
character vector |
extras |
character vector containing acceptable alternatives to numeric
values which will result in returning |
logical vector of same length as input
areNumeric
: Deprecated
1 2 3 | areNumeric(c("1", "2", "3"))
areNumeric(c("1L", "2.2"))
areNumeric(c("NA", NA, ".", "", "-1.9"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.