rseq: Robust sequence generation resembling the matlab ':'...

rseqR Documentation

Robust sequence generation resembling the matlab ':' operator.

Description

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.

Usage

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

Arguments

from

from

to

to

by

increment

...

Value

Sequence similar to the result of seq.

Author(s)

Tomas Sieger

Examples

rseq(from = 1, to = 0, by = 1)

tsieger/tsiMisc documentation built on Oct. 10, 2023, 10:24 p.m.