Sequence generation
iseq.Rd
As opposed to the standard seq
command the function iseq
returns an empty
vector if the starting value is larger than the end value.
Details
More general than seq_len because the sequence does not need to start from 1.
Examples
iseq(0,1) # => c(0,1)
#> [1] 0 1
iseq(1,0) # => integer(0)
#> integer(0)
seq(1,0) # => c(1,0)
#> [1] 1 0