Rev 42333 | Rev 42515 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/base/man/sequence.Rd% Part of the R package, http://www.R-project.org% Copyright 1995-2007 R Core Development Team% Distributed under GPL 2 or later\name{sequence}\title{Create A Vector of Sequences}\usage{sequence(nvec)}\alias{sequence}\arguments{\item{nvec}{an integer vector each element of which specifies the endpoint of a sequence.}}\description{For each element of \code{nvec} the sequence \code{seq(nvec[i])}is created. These are concatenated and the result returned.}\details{Note that \code{sequence} works for 0 or negative inputs as\code{seq(x) == 1:x}.}\seealso{\code{\link{gl}}, \code{\link{seq}}, \code{\link{rep}}.}\examples{sequence(c(3,2))# the concatenated sequences 1:3 and 1:2.#> [1] 1 2 3 1 2}\keyword{manip}