seql: Sequence generation with automatic cycling

View source: R/seql.R

seqlR Documentation

Sequence generation with automatic cycling

Description

Sequence generation with automatic cycling

Usage

seql(x, target)

Arguments

x

R object of some length

target

R object of some length

Author(s)

E.D. Gennatas

Examples

color <- c("red", "blue")
target <- 1:5
color[seql(color, target)]
# "red"  "blue" "red"  "blue" "red"
color <- c("red", "green", "blue", "yellow", "orange")
target <- 1:3
color[seql(color, target)]
# "red"   "green" "blue"

egenn/rtemis documentation built on Nov. 22, 2024, 4:12 a.m.