%+% | R Documentation |
String-concatenation infix operator a la '+' in Python.
lhs %+% rhs
lhs |
String (or string-coercible object) to be concatenated with the rhs (right-hand side). |
rhs |
String (or string-coercible object) to be concatenated with the lhs (left-hand side). |
No dependencies.
A character vector with length equal to the maximum length of the inputs.
## Not run:
'aaa ' %+% 'bbb ' %+% 'ccc ' %+% 'ddd'
# Zero-length inputs are concatenated in the resulting string as ''
'aaa ' %+% 'bbb ' %+% 'ccc ' %+% 'ddd'[F]
# If an input has length > 1, the result has length > 1 and a warning is given
c('aaa ', 'bbb ') %+% 'zzz'
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.