isSpace

Syntax

isSpace(X)

Arguments

X is a STRING scalar or vector.

Details

Check whether the string X consists of only space. Return “true” if all characters in X are space, “t” (tab), “r” (carriage return) or “n” (newline escape).

Examples

$ isSpace("hello world");
false

$ isSpace(" \t ");
true

$ isSpace(string());
false