Concatenation: Combine strings together

Description Usage Arguments Value Note See Also Examples

Description

Operator equivalent of regex.

Usage

1
2
3
x %c% y

x %R% y

Arguments

x

A character vector.

y

A character vector.

Value

A character vector representing part or all of a regular expression.

Note

%c% was the original operator for this ('c' for 'concatenate'). This is hard work to type on a QWERTY keyboard though, so it has been replaced with %R%.

See Also

regex, paste

Examples

1
2
# Notice the recycling
letters %R% month.abb

Example output

<regex> aJan
<regex> bFeb
<regex> cMar
<regex> dApr
<regex> eMay
<regex> fJun
<regex> gJul
<regex> hAug
<regex> iSep
<regex> jOct
<regex> kNov
<regex> lDec
<regex> mJan
<regex> nFeb
<regex> oMar
<regex> pApr
<regex> qMay
<regex> rJun
<regex> sJul
<regex> tAug
<regex> uSep
<regex> vOct
<regex> wNov
<regex> xDec
<regex> yJan
<regex> zFeb

rebus.base documentation built on May 2, 2019, 5:14 a.m.