Here is a workaround URLdecode.vec <- Vectorize(URLdecode)
# test it out x <- c("a%20b", "b%20c") URLdecode.vec(x) On Sat, Aug 29, 2009 at 10:31 AM, Jack Tanner<i...@hotmail.com> wrote: > In R 2.9.2, > >> URLdecode(c("a%20b", "b%20c")) > [1] "a b" > Warning message: > In charToRaw(URL) : argument should be a character vector of length 1 > all but the first element will be ignored > > Could URLdecode be modified to actually process all elements of the vector, > not > just the first? > > Thanks in advance > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.