Skip to content

generating a sequence

1 message · royle@penguin.irm.r9.fws.gov

#
Funny I had this same problem last week.  Use the function "sequence"
like:

sequence(4:1)
 [1] 1 2 3 4 1 2 3 1 2 1

kind regards
andy

---------------------------------------------------------------------
J. Andy Royle, U.S. Fish and Wildlife Service - Office of Migratory 
Bird Management; 11510 American Holly Drive , Laurel, MD 20708-4017; 
phone - 301-497-5673 fax - 301-497-5706 email - royle at penguin.fws.gov
---------------------------------------------------------------------
On Tue, 21 Dec 1999, KAREN KOTSCHY wrote:

            
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._