rseq is similar to seq with the only difference in the case when by is specified and goes in the opposite direction to from to to. In this case seq raises an error, while rseq returns an empty sequence.

rseq(from = 1, to = 1, by = NULL, ...)

Arguments

from

from

to

to

by

increment

...

Value

Sequence similar to the result of seq.

Examples

rseq(from = 1, to = 0, by = 1)
#> numeric(0)