strs_isdecimal | 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.