Movatterモバイル変換


[0]ホーム

URL:


Skip to contents

Check if string contains only whitespace characters

Source:R/isspace.R
strs_isspace.Rd

strs_isspace checks whether each element of a character vector containsonly whitespace characters. It is similar to Python'sstr.isspace() method.

Usage

strs_isspace(string)

Arguments

string

A character vector to be checked.

Value

A logical vector of the same length asstring, indicating whethereach element contains only whitespace characters.

See also

Python str.isspace() documentation

Examples

strs_isspace("    ")#> [1] TRUEstrs_isspace("hello world")#> [1] FALSE

[8]ページ先頭

©2009-2025 Movatter.jp