[ top | up ]

Sequence Generation

Usage

seq(from, to)
seq(from, to, by=)
seq(from, to, length=)
seq(along)

Description

The first form above generates the sequence from, from+1, ..., to. The second, from, from+by, ..., to. The third generates a sequence of length equally spaced values from from to to. The last generates the sequence 1, 2, ..., length(along).

See Also

rep, sequence, row, col.