I supposed I want to generate a vector with incremental steps like so:
> seq(1, 20, by=5)
[1] 1 6 11 16
however what I really want is to return a vector that is filled with the previous value up to the next step?
1,1,1,1,1,6,6,6,6,6,11,11,11,11,11,16
can this be done with without some convoluted looping? thanks in advance.