From Kurt.Hornik@ci.tuwien.ac.at  Mon Dec 25 21:29:20 2000
From: Kurt.Hornik@ci.tuwien.ac.at (Kurt Hornik)
Date: Mon, 25 Dec 2000 22:29:20 +0100
Subject: [Rd] bug in strsplit(x, "") (PR#793)
In-Reply-To: <200012241506.QAA17086@pubhealth.ku.dk>
References: <200012241506.QAA17086@pubhealth.ku.dk>
Message-ID: <14919.48176.902345.491051@mithrandir.hornik.net>

>>>>> 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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


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