powered by
This is the same as seq(from, to, by) except that when the sign of by is wrong, safeseq returns a zero-length vector rather than throwing an error.
seq(from, to, by)
by
safeseq
safeseq(from = 1L, to = 1L, by = 1L, ...)
The same as the from in base::seq.
from
base::seq
The same as the to in base::seq.
to
The same as the by in base::seq.
The same as in base::seq.
A vector of the same class as by*(from-to), but possibly with length being zero.
by*(from-to)
# NOT RUN { identical(integer(0L), safeseq(1L, 0L, 1L)) # }
Run the code above in your browser using DataLab