powered by
This function copies the first matrix in second one. Thhis fucntion will work only if both matrices are of same size.
copyMatrix(X,Y)
A matrix to be copied.
Target Matrix.
Returns Y Matrix.
Y
If the size of source and target matrices are not same it generates an error.
# NOT RUN { X<-matrix(c('a','b','c','d'),nrow=2, ncol=2) Y<-matrix(c(NA,NA,NA,NA),nrow=2, ncol=2) copyMatrix(X,Y) # }
Run the code above in your browser using DataLab