grapes-p-grapes.RdThe operator %p% combines character vectors.
x %p% yR objects that can be converted to character vectors.
A character vector of the concatenated values.
The call x %p% y is equivalent to the
call paste0(x,y); see paste
for more details.
# Combine strings via operator
"Hello" %p% " " %p% "world"
#> [1] "Hello world"
# Vectorized
x <- "I like "
y <- c("cats", "dogs", "fish")
x %p% y
#> [1] "I like cats" "I like dogs" "I like fish"