Check if a string is alphabetic.

Share:

Description

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

Usage

1

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

1
2
3
4
pystr_isalpha("abc")
pystr_isalpha("abc123")
pystr_isalpha("abc!")
pystr_isalpha(c("one", "2", "three!"))

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.