Seq: Produce constrained sequences

View source: R/Rdata.R

SeqR Documentation

Produce constrained sequences

Description

This is a wrapper around seq that adds constraints. Setting ascending, descending to NA reverts to standard seq behaviour.

Usage

Seq(from, to, ..., ascending = TRUE, descending = !ascending, neg = FALSE)

Arguments

from

starting value

to

ending value

...

parameters passed on to seq

ascending

restrict sequences to be ascending; return empty list if to < from

descending

restrict sequences to be descending; return empty list if from < to

neg

boolean to indicate wheter sequence should be negated before return

Value

sequence from from to to


sboehringer/package documentation built on Jan. 12, 2023, 6:33 a.m.