[prev in list] [next in list] [prev in thread] [next in thread] 

List:       r-devel
Subject:    Re: [Rd] bug in strsplit(x, "") (PR#793)
From:       Kurt Hornik <Kurt.Hornik () ci ! tuwien ! ac ! at>
Date:       2000-12-25 21:29:20
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic