Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

pasteC

Advanced paste-collapse


Description

pasteC is a variant of paste for convenient use of paste-collapse and separation of last element to paste (via 'lastCol'). This function was mode for more human like enumeriating in output and messages. If multiple arguments are given without names they will all be concatenated, if they contain names lazy evaluation for names will be tried (with preference to longest match to argument names). Note that some special characters (like backslash) may need to be protetected when used with 'collapse' or 'quoteC'. Returns character vector of length 1 (everything pasted together)

Usage

pasteC(..., collapse = ", ", lastCol = " and ", quoteC = "")

Arguments

...

(character) main input to be collapsed

collapse

(character,length=1) element to use for collapsing

lastCol

(character) text to use before last item enumerated element

quoteC

character to use for citing with quotations (default "")

Value

character vector of length=1 of the concatenated input/values.

See Also

paste for basic paste

Examples

pasteC(1:4)

wrMisc

Analyze Experimental High-Throughput (Omics) Data

v1.5.4
GPL-3
Authors
Wolfgang Raffelsberger [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.