[R] selecting matrix cels by two factors

2005-12-16 Thread Dimitri Joe
Hi, I have a (numeric) matrix X of the type X - matrix(c(1:9),ncol=3,nrow=3) colnames(X) - c(A,B,C) rownames(X) - c(D,E,F) Also, a have a data frame Y like Y - as.data.frame(cbind(c(D,E,F,D,E,F), + c(A,C,A,B,B,C) ) ) I want a matrix like 1 4

Re: [R] selecting matrix cels by two factors

2005-12-16 Thread Berton Gunter
:[EMAIL PROTECTED] On Behalf Of Dimitri Joe Sent: Friday, December 16, 2005 3:02 PM To: R-Help Subject: [R] selecting matrix cels by two factors Hi, I have a (numeric) matrix X of the type X - matrix(c(1:9),ncol=3,nrow=3) colnames(X) - c(A,B,C) rownames(X) - c(D,E,F) Also