In R, the seq() function generates a sequence of numbers. You can control the start and end values of the sequence, as well as the desired length and step size.

Generates the sequence 1 2 3 4 5 6 7 8 9 10:

seq(from = 1, to = 10)

To skip every other number, one can add a step size of 2:

seq(from = 1, to = 10, by = 2)

This generates 1 3 5 7 9.

In NeoStat, a sequence is generated with the Sequence node:

Leave a comment