IntroductionBasic SyntaxR StudioR CommanderHaving Some "Fun" with RVectorsCreate a vector ’x1’ containing the values 1, 2, and 3.x1 = c(1, 2, 3)Create a vector of ’n’ zero’s.x2 = rep(0, n)Store the values of the vectors x1 and x2 in the vector x3. Itis equivalent to the command x3 = c(1, 2, 3, 0, 0, 0, 0, 0)x3 = c(x1, x2)Add the 2nd element of x3 to the 1st element of x3 andstore it as the 1st element of x3x3[1] = x3[1] + x3[2]# NOTE: the vector index starts at 1 and not 0.Display x3x3## [1] 3 2 3 0 0 0 0 0Statistics and Actuarial Science7/ 47