op-plus-paste {toscmask} | R Documentation |
Behaves like normal + except for character vectors combinations of character and numeric vectors, which are pasted together.
x + y
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. |
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)
.
"abc" + "def"
"abc" + 1.234
1.234 + "abc"
"abc" + 2L
2L + "abc"