compact_character: Remove empty strings from character

View source: R/utils_compact.R

compact_characterR Documentation

Remove empty strings from character

Description

Remove empty strings from character

Usage

compact_character(x)

Arguments

x

A single character or a vector of characters.

Value

A character or a character vector with empty strings removed.

Examples

compact_character(c("x", "y", NA))
compact_character(c("x", "NULL", "", "y"))


easystats/insight documentation built on Dec. 14, 2024, 12:34 p.m.