I would like to create a repeat pattern from 5 to 0 then goes back to 5, 3 times, so I want 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, ..., 5 How can I do this is R??
I know rep
(seq(from=a, by=b, length=c),d)
function, but don't know how to use it with this pattern... Can anyone help , me, I would like to use
x <- 5
y <- 3