op-plus-paste: Plus operator

op-plus-pasteR Documentation

Plus operator

Description

Behaves like normal + except for character vectors combinations of character and numeric vectors, which are pasted together.

Usage

x + y

Arguments

x, y

numeric or complex vectors or objects which can be coerced to such, or other objects for which methods have been written, or a combination of numeric and character vectors.

Value

Same as +, except if e1 and e2 are two character vectors or a combination of a character vector and a numeric vector, in this case the result is paste0(x, y).

Examples

"abc" + "def"
"abc" + 1.234
1.234 + "abc"
"abc" + 2L
2L + "abc"

toscmask documentation built on March 18, 2022, 7:28 p.m.