%+% {utilitiesR}R Documentation

Convenience binary operator to concatenate strings together

Description

This is a convenience operator that is essentially paste0 in its binary operator form.

Usage

  a %+% b

Arguments

a

string to concatenate

b

string to concatenate

Value

the input strings concatenated (no separator)

See Also

collapse, which collapses vector arguments.

Examples

'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!')

[Package utilitiesR version 2.0 Index]