%+% {utilitiesR} | R Documentation |
This is a convenience operator that is essentially
paste0
in its binary operator
form.
a %+% b
a |
string to concatenate |
b |
string to concatenate |
the input strings concatenated (no separator)
collapse
, which collapses vector arguments.
'I do not like ' %+% 'green eggs and ham!' # returns: 'I do not like green eggs and ham!' # same as: paste0('I do not like', ' green eggs and ham!') 'I do not like ' %+% c('green eggs and ham!', 'them Sam I Am!') # returns: c('I do not like green eggs and ham!', 'I do not like them Sam I Am!')