Modified version of base::seq

seq2(from, to=NULL, by=1)

Arguments

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 base::seq)

Value

A vector containing a sequence of numbers

Details

Basically the same as base::seq, but returns an empty vector if (to-from)*by<0.