0

I am learning to use R language, if anyone can help me, I will be very grateful This is an example of what I want to do: Original data: 1 2 3 4 5

New data I want: 1 1 1 2 2 2 3 3 3 4 4 4 5 5 5

I tried to use rep(), but it repeats the whole data 3 times

enter image description here

Andre Wildberg
  • 12,344
  • 3
  • 12
  • 29

0 Answers0