ligges@statistik.uni-dortmund.de
2000-Dec-24 15:06 UTC
[Rd] bug in strsplit(x, "") (PR#793)
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. Uwe Ligges --please do not edit the information below-- Version: platform = i386-pc-mingw32 arch = x86 os = Win32 system = x86, Win32 status = major = 1 minor = 2.0 year = 2000 month = 12 day = 15 language = R Windows NT 4.0 (build 1381) Service Pack 6 Search Path: .GlobalEnv, package:ctest, Autoloads, package:base -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>>>>> 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._