strs_isalpha: Check if string contains only alphabetical characters

View source: R/isalpha.R

strs_isalphaR Documentation

Check if string contains only alphabetical characters

Description

strs_isalpha checks whether each element of a character vector contains only alphabetical characters. It is similar to Python's str.isalpha() method.

Usage

strs_isalpha(string)

Arguments

string

A character vector to be checked.

Value

A logical vector of the same length as string, indicating whether each element contains only alphabetical characters.

See Also

Python str.isalpha() documentation

Examples

strs_isalpha("hello")
strs_isalpha("hello123")

strs documentation built on Sept. 11, 2024, 6:44 p.m.