strs_isdecimal {strs} | R Documentation |
strs_isdecimal
checks whether each element of a character vector contains
only decimal characters. It is similar to Python's str.isdecimal()
method.
strs_isdecimal(string)
string |
A character vector to be checked. |
A logical vector of the same length as string
, indicating whether
each element contains only decimal characters.
Python str.isdecimal() documentation
strs_isdecimal("12345")
strs_isdecimal("123.45") # FALSE