I want to generate these two sequences:
A = c(0.25,0.50,0.75,1,0.25,0.50,0.75,0.25,0.50,0.25)
B = c(0.33,0.66,1,0.33,0.66,0.33)
with one function.
I already have this:
X = 5
X = 4
rep(seq(1/(X-1),1,1/(X-1)), X-1)
but, I still need to remove some values,
I did it like this, but that is not really the right way:
rep(seq(1/(X-1),1,1/(X-1)), X-1)[-c(8,11,12,14,15,16)]
rep(seq(1/(X-1),1,1/(X-1)), X-1)[-c(6,8,9)]
Is there a way to write this in a single function?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…