Dear useRs,
I have two matrices
> dput(EB)
structure(1:15, .Dim = c(3L, 5L), .Dimnames = list(NULL, c("A", "B", "C", "D", 
"E")))

> dput(EA)
structure(31:36, .Dim = c(3L, 2L), .Dimnames = list(NULL, c("D", "E")))
I have two question
1-Generally speaking, How can I replace the columns of matrix with the other 
columns having same names?
2-Precisely, how can I replace column "D" and "E" of "EB" with "D" and "E" of 
"EA"?
Thankyou very very much in advance.
Eliza                                     
        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to