seq2: Sequence generation

View source: R/seq2.R

seq2R Documentation

Sequence generation

Description

Creates a sequence of integers. Modified version of seq returning an empty vector if the starting point is larger than the end point. Originally provided by rlang::seq2().

Usage

seq2(from, to)

Arguments

from

The starting value of the sequence. Of length 1.

to

The end value of the sequence. Of length 1.

Value

A numerical sequence

Examples

seq2(from = 1, to = 5)

eatTools documentation built on May 29, 2024, 6:03 a.m.