Incorporate symbol in the center of every word

Viewed 19

Is there a way to incorporate a symbol in the center of the each letter. Example

asd <- c("A","sdf","sfgs")

Expected

"A + sdf + sfgs"
1 Answers

Using paste with collapse= option.

paste(asd, collapse=" + ")
# [1] "A + sdf + sfgs"
Related