gt; From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
> project.org] On Behalf Of Suphajak Ngamlak
> Sent: Tuesday, November 09, 2010 1:24 AM
> To: 'r-help@r-project.org'
> Subject: [R] Calculate Mean from List
>
> Dear all,
>
> I have a list of correla
one way is the following:
A <- replicate(10, cor(matrix(rnorm(30), 10, 3)), simplify = FALSE)
triA <- sapply(A, function (m) m[upper.tri(m)])
rowMeans(triA, na.rm = TRUE)
I hope it helps.
Best,
Dimitris
On 11/9/2010 9:23 AM, Suphajak Ngamlak wrote:
Dear all,
I have a list of correlation c
Dear all,
I have a list of correlation coefficient matrixes. Each matrix represents one
date.
For example
A[[1]]
A B C
A 1 0.2 0.3
B 0.2 1 0.4
C 0.3 0.4 1
A
3 matches
Mail list logo