The %p% operator is a shortcut for paste0.

x %p% y

Arguments

x

a first vector to paste

y

a second vector to paste

Examples

"abc" %p% "def"
#> [1] "abcdef"
"v_" %p% 1:3
#> [1] "v_1" "v_2" "v_3"
c("A", "B", "C") %p% 1:3
#> [1] "A1" "B2" "C3"