strs_isalnum | R Documentation |
strs_isalnum
checks whether each element of a character vector is
alphanumeric. This means that the function tests if all characters in the
string are either letters or digits. It is similar to Python's
str.isalnum()
method.
strs_isalnum(string)
string |
A character vector to be checked. |
A logical vector of the same length as string
, with each element
indicating whether the corresponding element of string
is completely
alphanumeric.
Python str.isalnum() documentation
strs_isalnum("hello123")
strs_isalnum("hello world")
strs_isalnum("12345")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.