
Sum Every "n"th Element, then add 1
sum_every_n1(x, n)
sum_every_n1
returns a vector of sums of every n
th element of the vector x
, plus 1.
A numeric vector to sum over
A numeric value specifying the distance between the reference index and the next index to be summed