I have:
ls = 1:14
I change value of every element except the first, last, and every 4th element from counting from the end
I would like:
ls = c(1, 2, "", "", "", 6, "", "", "", 10, "", "", "", 14)
Any suggestions how to achieve this?
I have:
ls = 1:14
I change value of every element except the first, last, and every 4th element from counting from the end
I would like:
ls = c(1, 2, "", "", "", 6, "", "", "", 10, "", "", "", 14)
Any suggestions how to achieve this?