I'm trying to make a quick vector with the following and I keep getting an error for an invalid 'times' argmuent. But I don't understand why as what I am putting for times are all integers. I'm trying to make a vector that repeats the different strings a different number of times. I'm really new to R, so it may be something simple, but I'm not sure. Below are the two different things I've tried:
your input vector c("CA 24h","CA 28day","An 28day","An 24h","T0",t) to repeat is of length 6, while your times argument is of length 5. So rep() does not know what to do with the 6th argument in this case. Add a 6th entry and the call will work (but be aware that you use the function t() as 6th input in your input vector - is this intended?)