prepComma: Prepend a comma to a non-empty string

View source: R/Functions.R

prepCommaR Documentation

Prepend a comma to a non-empty string

Description

Utility function that prepends a comma before the input string if the string is non-empty.

Usage

prepComma(s)

Arguments

s

Character string.

Value

If s is non-empty, returns paste(",", s), otherwise returns s.

Author(s)

Peter Langfelder

Examples

prepComma("abc");
prepComma("");

WGCNA documentation built on Jan. 22, 2023, 1:34 a.m.

Related to prepComma in WGCNA...