Re: [R] RFE: vectorize URLdecode

2009-08-30 Thread Jack Tanner
Gabor Grothendieck gmail.com> writes: > URLdecode.vec <- Vectorize(URLdecode) > > On Sat, Aug 29, 2009 at 10:31 AM, Jack Tanner hotmail.com> wrote: > > > > Could URLdecode be modified to actually process all elements of the vector, > > not just the first? Sure, that's a fine workaround. But is

Re: [R] RFE: vectorize URLdecode

2009-08-29 Thread Horner, Jeff
/2009 9:31 AM To: r-h...@stat.math.ethz.ch Subject: [R] RFE: vectorize URLdecode 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 ignore

Re: [R] RFE: vectorize URLdecode

2009-08-29 Thread Gabor Grothendieck
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 wrote: > In R 2.9.2, > >> URLdecode(c("a%20b", "b%20c")) > [1] "a b" > Warning message: > In charToRaw(URL) : argument should be a cha

[R] RFE: vectorize URLdecode

2009-08-29 Thread Jack Tanner
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 advanc