Re: [R] compute pearson correlation p-values for all combinations of columns of 2 matrices

2008-11-25 Thread David Winsemius
Didn't this question get asked and answered within a week or two? Daren Tan, meet John Baron's help search page: http://search.r-project.org/ ( and it apparently gets repeatedly asked and answered over the years.) -- David Winsemius On Nov 25, 2008, at 7:14 AM, Daren Tan wrote:

[R] compute pearson correlation p-values for all combinations of columns of 2 matrices

2008-11-25 Thread Daren Tan
How can I compute the pearson correlation p-values for all combinations of columns of 2 matrices ? > m <- matrix(rnorm(20), nrow=4, dimnames=list(LETTERS[1:4], letters[1:5])) > m1 <- matrix(rnorm(20), nrow=4, dimnames=list(LETTERS[1:4], letters[1:5])) > cor(m,m1) a b