Re: [R] Help in error removal

2011-07-13 Thread David Winsemius
On Jul 13, 2011, at 6:09 AM, Mitra, Sumona wrote: Dear all, Thank you so much for your help. I was able to get a script that ran and did what i wanted it to do. It was as follows:- correlation <- function(a) + { + r <- matrix(nrow = dim(a)[1], ncol=dim(a)[1]) + for(x in c(2:dim(a)[

Re: [R] Help in error removal

2011-07-13 Thread Mitra, Sumona
Dear all, Thank you so much for your help. I was able to get a script that ran and did what i wanted it to do. It was as follows:- > correlation <- function(a) + { + r <- matrix(nrow = dim(a)[1], ncol=dim(a)[1]) + for(x in c(2:dim(a)[1])) + { + for(y in c(x:dim(a)[1])) + { +

Re: [R] Help in error removal

2011-07-12 Thread David Hugh-Jones
On 12 July 2011 12:27, Mitra, Sumona wrote: > Dear all, > > I am new to programming in R. > You sure are ;-) I deal with microarray data,which is a data frame object type. I need to > carry out a few statistical procedures on this, one of them being the > pearson corelation. I need to do this

Re: [R] Help in error removal

2011-07-12 Thread David Winsemius
On Jul 12, 2011, at 7:27 AM, Mitra, Sumona wrote: Dear all, I am new to programming in R. You see to think there is a "++" operation in R. That is not so. I deal with microarray data,which is a data frame object type. I need to carry out a few statistical procedures on this, one of them

Re: [R] Help in error removal

2011-07-12 Thread Mitra, Sumona
Dear all, I am new to programming in R. I deal with microarray data,which is a data frame object type. I need to carry out a few statistical procedures on this, one of them being the pearson corelation. I need to do this between each row which is a gene. So the desired result is a square matri