Modified version of base::seq
seq2(from, to=NULL, by=1)
from | Can be the starting value of the sequence, or the end value of the sequence, or a vector of length>1, or a list |
---|---|
to=NULL | The ending value of the sequence |
by=1 | The step size (as in |
A vector containing a sequence of numbers
Basically the same as base::seq
, but returns an empty vector if (to-from)*by<0
.