I changed the condition to:
highlyCor<-cbind(rownames(x)[row(x)[((x > 0.9)|(x<(-.9)))]],
colnames(x)[col(x)[((x > 0.9)|(x<(-.9)))]])
Actually what I am trying to do is run factor analysis on this 923 by 925 x
matrix but many of the variables where too highly correlated and so I got
some message
On Apr 21, 2009, at 9:02 AM, onyourmark wrote:
Hi again. Thanks. I get it now.
So row(x) is a matrix with just the row number for each entry.
Yes.
How about x[row(x) == col(x)] ?
Can the square bracket function take a matrix as its argument? If
so, I
guess I understand this statement.
Just try to run x[row(x) == col(x)] .
You'll see it's a vector.
It's the same as diag(x)
Dimitri
On Tue, Apr 21, 2009 at 9:02 AM, onyourmark wrote:
>
> Hi again. Thanks. I get it now.
> So row(x) is a matrix with just the row number for each entry.
>
> How about x[row(x) == col(x)] ?
> Can the sq
Hi again. Thanks. I get it now.
So row(x) is a matrix with just the row number for each entry.
How about x[row(x) == col(x)] ?
Can the square bracket function take a matrix as its argument? If so, I
guess I understand this statement.
The argument is a boolean matrix.
Thank you.
David Winsemiu
sage-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org]
On Behalf Of onyourmark
Sent: Tuesday, April 21, 2009 6:03 PM
To: r-help@r-project.org
Subject: Re: [R] search through a matrix
Thanks very much.
I don't really understand the row() function. I looked in the
On Apr 21, 2009, at 8:33 AM, onyourmark wrote:
Thanks very much.
I don't really understand the row() function. I looked in the
reference but
I don't really get it. It says:
Description
Returns a matrix of integers indicating their row number in a matrix-
like
object, or a factor indicati
Thanks very much.
I don't really understand the row() function. I looked in the reference but
I don't really get it. It says:
Description
Returns a matrix of integers indicating their row number in a matrix-like
object, or a factor indicating the row labels.
Usage
row(x, as.factor = FALSE)
Arg
Uwe Ligges wrote:
onyourmark wrote:
Hi. I have a 925 by 925 correlation matrix corM. I want to identify all
variables that have correlation greater than 0.9. Can anyone suggest
an "R
way" of doing this?
Thank you.
Example:
# prepare example data:
x <- matrix((1:25) / 25, 5, 5)
rownames(
onyourmark wrote:
Hi. I have a 925 by 925 correlation matrix corM. I want to identify all
variables that have correlation greater than 0.9. Can anyone suggest an "R
way" of doing this?
Thank you.
Example:
# prepare example data:
x <- matrix((1:25) / 25, 5, 5)
rownames(x) <- letters[1:5]
co
Hi. I have a 925 by 925 correlation matrix corM. I want to identify all
variables that have correlation greater than 0.9. Can anyone suggest an "R
way" of doing this?
Thank you.
--
View this message in context:
http://www.nabble.com/search-through-a-matrix-tp23153538p23153538.html
Sent from th
10 matches
Mail list logo