join: join strings

View source: R/utils.r

joinR Documentation

join strings

Description

Similar as paste, but ignores NULL, NA and empty strings.

Usage

join(..., sep = " ", collapse = NULL)

Arguments

...

one or more R objects, to be converted to character vectors.

sep

a a character string to separate the terms. Not "NA_character_".

collapse

an optional character string to separate the results. Not "NA_character_".

Value

a character vector of the concatenated values. See paste.

Examples

beter:::join("foo", NULL, NA, "", "bar") # "foo bar"


bioDS/beter documentation built on June 15, 2022, 7:58 a.m.