Generate regular sequences.
starting value of sequence.
(maximal) end value of the sequence.
The binary operator
: has two meanings: for factors
interaction(a, b) (but the levels are
ordered and labelled differently).
For other arguments
from:to is equivalent to
and generates a sequence from
to in steps of
to will be included if it differs from
from by an integer up to a numeric fuzz of about
Non-numeric arguments are coerced internally (hence without
dispatching methods) to numeric—complex values will have their
imaginary parts discarded with a warning.
For numeric arguments, a numeric vector. This will be of type
from is integer-valued and the result
is representable in the R integer type, otherwise of type
For factors, an unordered factor with levels labelled as
and ordered lexicographically (that is,
lb varies fastest).
Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988)
The New S Language.
Wadsworth & Brooks/Cole.
(for numeric arguments: S does not have
: for factors.)
seq (a generalization of
As an alternative to using
: for factors,
: used in the formal representation of an interaction, see
1 2 3 4 5 6 7
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.