strs_isspace: Check if string contains only whitespace characters

View source: R/isspace.R

strs_isspaceR Documentation

Check if string contains only whitespace characters

Description

strs_isspace checks whether each element of a character vector contains only whitespace characters. It is similar to Python's str.isspace() method.

Usage

strs_isspace(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 whitespace characters.

See Also

Python str.isspace() documentation

Examples

strs_isspace("    ")
strs_isspace("hello world")

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