%p% | R Documentation |
The operator %p%
combines character vectors.
x %p% y
x , y |
R objects that can be converted to character vectors. |
The call x %p% y
is equivalent to the
call paste0(x,y)
; see paste
for more details.
A character vector of the concatenated values.
# Combine strings via operator
"Hello" %p% " " %p% "world"
# Vectorized
x <- "I like "
y <- c("cats", "dogs", "fish")
x %p% y
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.