Learn R Programming

pystr (version 2.0.0)

pystr_isspace: Check if a string is whitespace.

Description

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

Usage

pystr_isspace(str)

Arguments

str
A character vector.

Value

A logical vector.

References

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

Examples

Run this code
pystr_isspace("    ")
pystr_isspace("  a ")

Run the code above in your browser using DataLab