Learn R Programming

matlab2r (version 1.5.0)

isspace: Determine space characters

Description

Determine which characters are space characters

Usage

isspace(A)

Value

a vector TF such that the elements of TF are logical 1 (true) where corresponding characters in A are space characters, and logical 0 (false) elsewhere.

Arguments

A

a character array or a string scalar

Author

Waldir Leoncio

Examples

Run this code
chr <- "123 Main St."
X <- "\t a b\tcde f"
isspace(chr)
isspace(X)

Run the code above in your browser using DataLab