R Basic-Dumps - Classicoder.com Assume that you have a vector x <-c(3,5,1,10,12,6) and you wish to set all elements of this vecto…