Learn R Programming

insight (version 0.20.4)

compact_character: Remove empty strings from character

Description

Remove empty strings from character

Usage

compact_character(x)

Value

A character or a character vector with empty strings removed.

Arguments

x

A single character or a vector of characters.

Examples

Run this code
compact_character(c("x", "y", NA))
compact_character(c("x", "NULL", "", "y"))

Run the code above in your browser using DataLab