[R] Request for unsubscribe from this forum.

2013-01-27 Thread Purna chander
Dear admin members, My Inbox is being flooded with the posts every time. As a reason, I wish to unsubscribe from this forum. Can you suggest me how to do that. Regards, Purna __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/

[R] How to remove the vertical space between two graps

2013-01-22 Thread Purna chander
Hi, I have created a barplot using the following code. a<-c(11,23,15,34,42,31) m<-matrix(a,nrow=2) m[2,]<-(-1)*m[2,] par(mar=c(4,4,4,0)) barplot(m[2,],horiz=T) par(mar=c(4,0,4,2)) barplot(m[1,],horiz=T,col="black") and the plot obtained is shown in "plot1.tiff". I was not willing to see the g

[R] Regarding the memory allocation problem

2012-10-25 Thread Purna chander
Dear All, My main objective was to compute the distance of 10 vectors from a set having 900 other vectors. I've a file named "seq_vec" containing 10 records and 256 columns. While computing, the memory was not sufficient and resulted in error "cannot allocate vector of size 152.1Mb" So I

[R] problem in finding sizes of objects using a for loop

2012-10-24 Thread Purna chander
Dear All, I wanted to extract the sizes of all created objects. For E.g when I created 2 objects(x and y), I got their sizes using the following code: > x<-rnorm(1) > y<-runif(100,min=40,max=1000) > ls() [1] "x" "y" > object.size(x) 80024 bytes > object.size(y) 824 bytes However, I was unabl

[R] Any better way of optimizing time for calculating distances in the mentioned scenario??

2012-10-12 Thread Purna chander
Dear All, I'm dealing with a case, where 'manhattan' distance of each of 100 vectors is calculated from 1 other vectors. For achieving this, following 4 scenarios are tested: 1) scenario 1: > x<-read.table("query.vec") > v<-read.table("query.vec2") > d<-matrix(nrow=nrow(v),ncol=nrow(x)) > fo

Re: [R] Text file: multiple matrix

2012-10-10 Thread Purna chander
Hi, You can try this and see. I'm assuming that the initial text file named "test.txt". x<-read.table("test.txt",header=T) # if headers are present in "test.txt" or x<-read.table("test.txt") # Actually, read.table() command skips the blank lines. n<-256 for (i in 1:100){ filename=past

[R] Any better way of optimizing time for calculating distances in the mentioned scenario??

2012-10-08 Thread Purna chander
Dear All, I'm dealing with a case, where 'manhattan' distance of each of 100 vectors is calculated from 1 other vectors. For achieving this, following 4 scenarios are tested: 1) scenario 1: > x<-read.table("query.vec") > v<-read.table("query.vec2") > d<-matrix(nrow=nrow(v),ncol=nrow(x)) > fo