-4

Below is the series need to get using R with rep and seq series : 'a','a',1,2,3,4,5,7,9,11

I am Leaning R as beginner. Please try to help me on the above query

1 Answers1

0

Maybe this albeit not the best way:

myseq=c(rep("a",2),seq(1,5,1),seq(7,11,2))
NelsonGon
  • 13,015
  • 7
  • 27
  • 57