Learn R Programming

pystr (version 2.0.0)

pystr_isalpha: Check if a string is alphabetic.

Description

Return TRUE if all characters in the string are alphabetic and there is at least one character, FALSE otherwise.

Usage

pystr_isalpha(str)

Arguments

str
A character vector.

Value

A logical vector.

References

https://docs.python.org/3/library/stdtypes.html#str.isalpha

See Also

pystr_isalnum, pystr_isnumeric

Examples

Run this code
pystr_isalpha("abc")
pystr_isalpha("abc123")
pystr_isalpha("abc!")
pystr_isalpha(c("one", "2", "three!"))

Run the code above in your browser using DataLab