oper_plus: Concatenate Two Character Vectors

Description Usage Arguments Details Value Examples

Description

A binary operator for joining (concatenating) two character vectors, with a typical R look-and-feel.

Usage

1
e1 %+% e2

Arguments

e1

character vector

e2

character vector

Details

Vectorized over e1 and e2.

This operator works like a call to stri_join(e1, e2, sep="") (but is slightly faster). However, note that joining 3 vectors, e.g. e1 %+% e2 %+% e3 is slower than stri_join(e1, e2, e3, sep=""), because it creates a new (temporary) result vector each time the operator is applied.

Value

Returns a character vector.

Examples

1
2
c('abc','123','\u0105\u0104')%+%letters[1:6]
'ID_'%+%1:5

stringi documentation built on May 2, 2019, 4:54 p.m.