[S] Changing a list to a vector

Alan Donald (donald@portal.ca)
Tue, 19 May 1998 10:01:34 -0700


This is rather a simple question that I remember running into about a year
ago and solving -- but I cannot remember how I did it.

I have a list whose components are numeric vectors of various
lengths. What I want to do is to strip the "list" structure from the object
so that I get a vector consisting of all the components glued together.
This is part of a program, so I could -- I guess -- write a little program
that trudges its way through the list tacking vectors on to the end of a
long train of numbers. But I think there is a function in Splus that will
do this for me quickly. Searches through the Splus 3.3 and 4 help files and
manuals have turned up nothing. Must be looking under the wrong word.

Any help appreciated. Thanks.

Alan

Alan Donald
101-5805 Balsam Street
Vancouver BC V6M 4B9
Canada
604 264 9918
donald@portal.ca

A harmless drudge.


-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news