-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I'm generating a symmetric correlation matrix using a data matrix as input:
mat - cor(data.mat)
My question is:
Is there a more memory efficient way to store this data? For instance, since:
all(mat == t(mat))
every value is duplicated, and I should
You can do
mat[lower.tri(mat, diag=F)]
Søren
Fra: r-help-boun...@r-project.org på vegne af Nathan S. Watson-Haigh
Sendt: on 07-01-2009 01:28
Til: r-help@r-project.org
Emne: [R] Memory Efficiency of Symmetric Matrix
-BEGIN PGP SIGNED MESSAGE-
Hash
: Re: [R] Memory Efficiency of Symmetric Matrix
You can do
mat[lower.tri(mat, diag=F)]
Søren
Fra: r-help-boun...@r-project.org på vegne af Nathan S. Watson-Haigh
Sendt: on 07-01-2009 01:28
Til: r-help@r-project.org
Emne: [R] Memory Efficiency of Symmetric Matrix
-project.org på vegne af Nathan S. Watson-Haigh
Sendt: on 07-01-2009 01:28
Til: r-h...@r-project.org
Emne: [R] Memory Efficiency of Symmetric Matrix
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I'm generating a symmetric correlation matrix using a data matrix as input:
mat - cor(data.mat)
My
to test it out with my usual 24k x 24k size matrices.
Fra: r-help-boun...@r-project.org på vegne af Nathan S. Watson-Haigh
Sendt: on 07-01-2009 01:28
Til: r-h...@r-project.org
Emne: [R] Memory Efficiency of Symmetric Matrix
I'm generating a symmetric
5 matches
Mail list logo