R_Code-7.r (242B)
1 # Create a numerical vector containing the sequence of 2 # numbers from 1 to 5 using the : operator. Then, use the rep() 3 # function with the times argument to repeat that entire sequence exactly 2 times. 4 5 s <- rep(c(1:5), times= 2) 6 print(s)