Free Access Week-  Data Engineering + BI
Data engineering and BI courses are free!
Free AI Access Week from June 2-8

wrapr (version 2.0.2)

seqi: Increasing whole-number sequence.

Description

Return an in increaing whole-number sequence from a to b inclusive (return integer(0) if none such). Allows for safe iteraton.

Usage

seqi(a, b)

Arguments

a

scalar lower bound

b

scalar upper bound

Value

whole number sequence

Examples

Run this code
# NOT RUN {
# print 3, 4, and then 5
for(i in seqi(3, 5)) {
   print(i)
}

# empty
for(i in seqi(5, 2)) {
   print(i)
}

# }

Run the code above in your browser using DataLab