.BG
.FN seq
.FN :
.TL
Sequences
.CS
from:to    # as operator
seq(from, to, by, length, along)  # as function
.AG from
starting value of sequence.
.AG to
ending value of sequence.
.AG by
spacing between successive values in the sequence.
.AG length
number of values in the sequence.
.AG along
an object.
.RT
a numeric vector with values (`from', `from+by',
`from+2*by', ...  `to').  If arguments are omitted,
an appropriate sequence is generated;  for example, with `seq(to=n)'
a sequence
from `1' to the `n' is constructed.
`from' may be larger or smaller than `to'.
If `by' is specified, it
must have the appropriate sign to generate a finite sequence.
.PP
To generate a sequence from 1 to `length(x)' to parallel an object `x',
use `seq(along=x)'.  This produces the desired result even if
the length of `x' is 0 or 1.
Except for these two cases, either `seq(x)' or `1:length(x)' will produce
the same result.
.PP
When used as an operator, `:' has a high precedence
(see `Syntax'); for example, to
create a sequence from `1' to `n-1', parentheses are needed `1:(n-1)'.
.EX
seq(5) #1,2,3,4,5
1:5 #same thing

5:1 #5,4,3,2,1

seq(0, 1, .01) #0,.01,.02,.03,...,1.

seq(along=x) # 1, 2, ..., length(x)

seq(-3.14,3.14,length=100)   # 100 values from -pi to pi
.KW manip
.WR
