paste_valid: paste_valid

View source: R/paste_valid.R

paste_validR Documentation

paste_valid

Description

Given a set of character objects, combine all non-empty variables into a single string. Uses is_empty() to test validity, so should be robust to all kinds of missingness. It will remove both NA and NULL.

Usage

paste_valid(..., sep = "", collapse = "_")

Arguments

...

a set of arguments to be combined into a single string

sep

character added to end of each argument; default sep=""

collapse

character separating the concatenated strings; default collapse="_"

See Also

Other simple text string manipulation functions: string_capitalize_first(), string_parseCamel()


galacticpolymath/GPpub documentation built on April 5, 2025, 6:04 p.m.