R_Code-7.r (368B)
1 # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 19 Mar 2026 2 # Repo: https://github.com/notamitgamer/bsc 3 # License: MIT 4 5 # Create a numerical vector containing the sequence of 6 # numbers from 1 to 5 using the : operator. Then, use the rep() 7 # function with the times argument to repeat that entire sequence exactly 2 times. 8 9 s <- rep(c(1:5), times= 2) 10 print(s)