strs_isnumeric | R Documentation |
strs_isnumeric
checks whether each element of a character vector contains
only numeric characters. It is similar to Python's str.isnumeric()
method.
strs_isnumeric(string)
string |
A character vector to be checked. |
A logical vector of the same length as string
, indicating whether
each element contains only numeric characters.
Python str.isnumeric() documentation
strs_isnumeric("12345")
strs_isnumeric("123a") # contains a non-numeric character
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.