Referring the title, I\'m figuring how to convert space between words to be %20 .
For example,
> y <- \"I Love You\"
How to
gsub() is one option:
gsub()
R> gsub(pattern = " ", replacement = "%20", x = y) [1] "I%20Love%20You"