prepComma: Prepend a comma to a non-empty string

Description Usage Arguments Value Author(s) Examples

Description

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

Usage

1

Arguments

s

Character string.

Value

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

Author(s)

Peter Langfelder

Examples

1
2
prepComma("abc");
prepComma("");


Search within the WGCNA package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.