ah: Paste Wrappers - Preset Collapse

Description Usage Arguments Value Examples

Description

ah - paste with collapse = " ". The name comes from the interjection "ah" as in "Ah I don't need to type collapse = " "."

nah - paste with collapse = "\n", useful in concert with cat. The name is simpley ah + n from collapse = "\n".

Usage

1
2
3
ah(x, collapse = " ", ...)

nah(x, collapse = "\n", ...)

Arguments

x

A vector to collapse.

collapse

An character string to separate the results.

...

Other arguments passed to paste.

Value

Returns a collapsed, pasted vector.

Examples

1
2
ah(LETTERS[1:8])
cat(nah(LETTERS[1:8]))

trinker/hilight documentation built on May 31, 2019, 8:51 p.m.