Jeff:
You do not say what version of S-Plus you are using, but I'd guess 6.0 for
Linus/Unix. In S-Plus 6.0 for Windows, I went to the Help> Contents
tab,Character Data Operations> Concatenate Data... and at the botton of the
paste() listing, found unpaste(), which is what you need. This took me one
minute and seemed reasonable even though I did know the answer.
Alas, however, unpaste is undocumented in SP2000 (although it's there) and
missing in earlier versions, I believe. splitString() is an undocumented S4
construct to support the string class. However, Splus tells us in its
documentation -- and David Smith has repeated on this list, I believe --
that string types are not fully supported (and may never be), so that
splitString() is risky.
Nevertheless, I would agree that the S6.0 documentation is rather poor and
that the Help files are quite problematic in their documentation of S4
language features. I would hope that cleaning this up has a high priority
for Insightful.
Cheers,
Bert Gunter
Biometrics Research RY 70-38
Merck & Company
P.O. Box 2000
Rahway, NJ 07065-0900
Phone: (732) 594-7765
mailto: bert_gunter@merck.com
"The business of the statistician is to catalyze the scientific learning
process." -- George E.P. Box
-----Original Message-----
From: Jeff Mincy [mailto:jeff@delphioutpost.com]
Sent: Friday, December 21, 2001 9:12 PM
To: s-news@lists.biostat.wustl.edu
Subject: [S] string functions
Does anybody have a reasonably complete list of string functions?
The reason that I ask is that I just spent 30 minutes trying to find a
function to to turn "foo:bar" into list("foo","bar"). I eventually
guessed both unpaste and splitString. I found splitString with Emacs
ESS name completion after guessing 'split'. Anyway, there has to be a
better way to find these functions than trying to use the splus
manuals.
-jeff
---------------------------------------------------------------------
This message was distributed by s-news@lists.biostat.wustl.edu. To
unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with
the BODY of the message: unsubscribe s-news
|