[18640] in s-news-athena
[S] vector of 1:n
daemon@ATHENA.MIT.EDU (Erin Hodgess)
Fri Jul 16 00:54:18 1999
Date: Thu, 15 Jul 1999 23:47:56 -0500 (CDT)
From: Erin Hodgess <hodgess@uhdux2.dt.uh.edu>
Message-Id: <199907160447.XAA14130@uhdux2.dt.uh.edu>
To: s-news@wubios.wustl.edu
Hello S+ ers!
Suppose I would like to generate a vector consisting of
1,2,...n,2,3,...n,...n-1,n,n
For example, if n=4, I would like
1,2,3,4,2,3,4,3,4,4
I'm sure there is a quick and simple way to do this.
Note: this is just for an experiment, nothing pressing.
S+ 4.5 on Windows 98.
Thanks in advance for any help.
Sincerely,
Erin M. Hodgess, Ph.D.
Assistant Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
One Main Street
Houston, TX 77002
e-mail: hodgess@uhdux2.dt.uh.edu
-----------------------------------------------------------------------
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