powered by
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
str.isdecimal()
strs_isdecimal(string)
A logical vector of the same length as string, indicating whether each element contains only decimal characters.
string
A character vector to be checked.
Python str.isdecimal() documentation
strs_isdecimal("12345") strs_isdecimal("123.45") # FALSE
Run the code above in your browser using DataLab