How to Convert "space" into "%20" with R
curl, r, rcurl
Solution
`gsub()` is one option:
R> gsub(pattern = " ", replacement = "%20", x = y)
[1] "I%20Love%20You"
Problem
Referring the title, I'm figuring how to convert space between words to be %20 . For example, ``` > y <- "I Love You" ``` How to make `y = I%20Love%20You` ``` > y [1] "I%20Love%20You" ``` Thanks a lot.