I'm learning how to use this program. I have a vector with values called, for example, X. I need to add one zero after the value 11 in my vector, so I have used the function append:
X<- append(X, 0, after=11)
It works properly, but I have problems when I want to add two zeroes between two different values in the vector. How can I indicate to the function that I want one zero after the values 3 and 11? I have tried with after= c(3,11) and after= (3,11), and it doesn't work.
For now, I have fixed it by writing it again but I'm sure there is a better solution:
X<- append(X, 0, after=3); X<- append(X, 0, after=11)
Thank you and I'm sorry cause my english is not very good