plus: Easy character concatenation

+R Documentation

Easy character concatenation

Description

A wrapper for stringr's str_c and the primitive "+" function.

Usage

x + y

Arguments

x

(character vector) A character vector.

y

(character vector) A character vector.

Value

A character vector. Note that it will have a length longer than one if one of the inputs has that.

Examples

#digits still work
1+1
#characters work too
"str" + "ing"
#mixes are converted to characters
"123" + 456
#longer than length 1
1:2 + "a"

Deleetdk/kirkegaard documentation built on April 22, 2024, 5:22 p.m.