Re: [R] Installation of XMLPRC package

2011-07-22 Thread Mitra, Sumona
Dear all, Apologies for not being specific earlier. The R version I am using is 2.12.2. Everytime I try installing XMLRPC using the following command:- > install.packages(repos = "http://www.omegahat.org/XMLRPC/XMLRPC_0.2-4.tar.gz";) I get the following error Warning: unable to access index

Re: [R] Installation of XMLPRC package

2011-07-22 Thread Mitra, Sumona
Dear R users, I am trying to download the XMLRPC package for R from www.omegahat.org without any success. Any pointers? Sumona __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www

Re: [R] Coercing Logical array to Numeric array

2011-07-21 Thread Mitra, Sumona
Dear all, Thank you so much for your help. Best, Sumona __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-c

Re: [R] Coercing Logical array to Numeric array

2011-07-20 Thread Mitra, Sumona
Dear all, Coercing a logical vector to a numeric one is easy. The as.numeric function is used. However what do we use when we have a matrix or an array? Sumona __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

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 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