grapes-p-grapes: Operator to Concatenate Two Strings

%p%R Documentation

Operator to Concatenate Two Strings

Description

The operator %p% combines character vectors.

Usage

x %p% y

Arguments

x, y

R objects that can be converted to character vectors.

Details

The call x %p% y is equivalent to the call paste0(x,y); see paste for more details.

Value

A character vector of the concatenated values.

Author(s)

Kevin Potter

Examples

# Combine strings via operator
"Hello" %p% " " %p% "world"

# Vectorized
x <- "I like "
y <- c("cats", "dogs", "fish")
x %p% y


rettopnivek/camrprojects documentation built on March 26, 2024, 9:17 a.m.