[Rd] bug in strsplit(x, "") (PR#793)

Kurt Hornik Kurt.Hornik@ci.tuwien.ac.at
Mon, 25 Dec 2000 22:29:20 +0100


>>>>> ligges  writes:

> Instead of 
>   strsplit(c("Hello", "", "World"), NULL)

> (which works as expected), I used

>   strsplit(c("Hello", "", "World"), "")

> [[1]]
> [1] "H" "e" "l" "l" "o"

> [[2]]
> [1] ""  "e" "l" "l" "o"

> [[3]]
> [1] "W" "o" "r" "l" "d"


> The second element does not look like an expected result.

Thanks.  Fixed now.

-k
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._