op-plus-paste {toscmask} | R 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"
[Package toscmask version 1.2.3 Index]