is_empty_str: Is string empty or an all whitespace string?

View source: R/parse-utils.R

is_empty_strR Documentation

Is string empty or an all whitespace string?

Description

Matches the string vector against "^\\s*$".

Usage

is_empty_str(str, convert_NA_to_FALSE = TRUE)

Arguments

str

A character vector.

convert_NA_to_FALSE

Whether to treat NA as NA (convert_NA_to_FALSE = FALSE) or whether to return FALSE when an NA is found (convert_NA_to_FALSE = TRUE).

Value

A logical.


ramiromagno/gwasrapidd documentation built on Jan. 3, 2024, 10:21 p.m.