seq: Sequence

View source: R/seq.R

seqR Documentation

Sequence

Description

Generate a numeric sequence.

Details

Create a numeric vector that is a sequence starting at the first argument, ending at the second, and incrementing by the third.

seq(from, to, by)

See Also

rep(), c(), sample()

Examples

seq(0, 1, by = .2)

#> [1] 0.0 0.2 0.4 0.6 0.8 1.0

-----------------------------------

# Sequences can go backwards:
seq(100, 0, by = -10)

#> [1] 100  80  60  40  20   0


cobriant/qelp documentation built on July 1, 2022, 7:24 a.m.