powered by
This function copies the first vector in second one. This fucntion will work only if both vectors are of same length.
copyVector(x,y)
Vector to be copied.
Target vector.
Returns y.
y
If the length of source and target vectors are not same it generates an error.
# NOT RUN { x<-c(1,2,3,4) y<-c(NA,NA,NA,NA) copyVector(x,y) # }
Run the code above in your browser using DataLab