How do I generate a vector with a specified increment step (e.g. 2)? For example, how do I produce the following
1,3,5,7,9,11,13,15,17,19
I want to do it with the function 1:19 with the jump of 2.
I know the seq
function, I want to know if there is a way to create the vector in this way 1:19(with jumps of 2)
?