bsc

Comprehensive codebase and coursework for the 4-year B.Sc. Computer Science Honours degree (WBSU)

git clone https://github.com/notamitgamer/bsc.git
· rebuilt hourlyOpen on GitHub
root / semester_1 / R / Code / R_Code-7.r

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)