can_be_numeric

0th

Percentile

Check if a string could be considered as numeric.

After padding is removed, could the input string be considered to be numeric, i.e. could it be coerced to numeric. This function is vectorized over its one argument.

Usage
can_be_numeric(string)
Arguments
string

A character vector.

Value

A character vector. TRUE if the argument can be considered to be numeric or FALSE otherwise.

Aliases
  • can_be_numeric
Examples
# NOT RUN {
can_be_numeric("3")
can_be_numeric("5 ")
can_be_numeric(c("1a", "abc"))
# }
Documentation reproduced from package filesstrings, version 2.5.0, License: GPL-3

Community examples

Looks like there are no examples yet.