%p% | R Documentation |
Like most operators, can split across lines with operator at front of second line only if inside parenthesis. Unlike most operators, this is pretty likely to happen. See Examples.
x %p% y
x %pp% y
x |
The first object to paste |
y |
The second object to paste |
Returns the result of pasting the two objects together:
x %p% y == paste0(x, y) x %pp% y == paste(x, y)
"Hello, " %p% "world!" == "Hello, world!"
"Hello," %pp% "world!" == "Hello, world!"
name <- "Amy"
"Hello," %pp% name %p% "!" == "Hello, Amy!"
"Hello," %pp%
"world!" == "Hello, world!"
("Hello,"
%pp% "world!") == "Hello, world!"
# "Hello,"
# %pp% "world!" == "Hello, world!"
# Error: unexpected SPECIAL in " %pp%"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.