Skip to contents

Iteratively expand sequence for looped subsetting

Usage

seq_iter(i, n)

Arguments

i

iteration

n

sequence size

Value

numeric vector

Examples

for (i in 1:2) print(seq_iter(i, 5))
#> [1] 1 2 3 4 5
#> [1]  6  7  8  9 10