text_utils_joining: Various utils for joining of text.

text_utils_joiningR Documentation

Various utils for joining of text.

Description

Join character vectors by commas and spaces (optionally).

Join character vectors by newlines (⁠\n⁠).

Join character vector by spaces.

Usage

str_comma(..., space = TRUE, collapse = TRUE)

str_line(..., collapse = TRUE)

str_space(..., collapse = TRUE)

Arguments

...

Character vectors or scalars. Passed to stringr::str_c(). For catn(), character vectors or scalars to join.

space

A logical scalar: if TRUE, add space after commas.

collapse

A logical scalar: if TRUE, join also character vectors passed to ....

Value

A character scalar.


bioinfocz/scdrake documentation built on Sept. 19, 2024, 4:43 p.m.