strsplit does not conform to documentation (PR#379)

About this list Date view Thread view Subject view Author view Other groups

Subject: strsplit does not conform to documentation (PR#379)
cberry@tajo.ucsd.edu
Date: Sat 18 Dec 1999 - 12:47:04 EST


Message-Id: <199912180247.DAA07122@pubhealth.ku.dk>

Description:

     Split the Strings in `x' into substrings according to
     the presence of substring `split' within them.

--------------------

> strsplit("acbdefgSPLIThigkilmnSpPqrst","SPLIT")
[[1]]
[1] "acbdefg" "higkilmn" "p" "qrst"

--------------------

Apparently, it will

Split the Strings in `x' into substrings according to the presence of
ANY CHARACTER FOUND IN substring `split'.

-------------------

Was this intended? I expected, as the documentation implies that the
result from above would be:

"acbdefg" "higkilmnSpPqrst"

Chuck Berry

--please do not edit the information below--

Version:
 platform = sparc-sun-solaris2.7
 arch = sparc
 os = solaris2.7
 system = sparc, solaris2.7
 status = Release
 major = 0
 minor = 65.1
 year = 1999
 month = October
 day = 07
 language = R

Search Path:
 .GlobalEnv, 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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b25 : Tue 04 Jan 2000 - 14:16:11 EST