Use: seq(),rep()and possibly other commonly-used operators/functions,but NOT c()or any explicit loops to create the following sequences (compound expres-sions are allowed).
I have this sequence I wanted to create:
2.5 5.5 9.5 14.5 20.5 27.5 35.5
I know the increment is cumsum(3:8) but how do I put this into rep(seq(2.5, 35.5))? I tried:
rep(seq(2.5, 35.5, cumsum(3:8)))
but it gives me error. How do I do this? Thanks guys!