Re: [R] Please help on correlation matrix

2006-03-25 Thread Gabor Grothendieck
This works as long as you have no more than 26 variables. Suppose your correlation matrix is x. x <- cor(iris[,-5]) # test data rownames(x) <- colnames(x) <- letters[1:ncol(x)] On 3/25/06, stat stat <[EMAIL PROTECTED]> wrote: > hi everyone, > > Suppose I have three variables a, b, and c each wi

Re: [R] Please help on correlation matrix

2006-03-25 Thread Ted Harding
On 25-Mar-06 stat stat wrote: > hi everyone, > > Suppose I have three variables a, b, and c each with 10 values. Now I > construct a corr matrix for them. Now I want to give the names of > columns of corr matrix as a, b, c, i.e. the first column of corr matrix > will have name as ‘a’ second c

[R] Please help on correlation matrix

2006-03-25 Thread stat stat
hi everyone, Suppose I have three variables a, b, and c each with 10 values. Now I construct a corr matrix for them. Now I want to give the names of columns of corr matrix as a, b, c, i.e. the first column of corr matrix will have name as ‘a’ second column with ‘b’ and so on. Can anyone gi