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
/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
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
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
4 matches
Mail list logo