Re: [R] How to Turn OFF Vectors Recycling Rule in Paste()

2015-08-27 Thread Preeti ranjan Pradhan
you expressed it you can do e.g. > > paste(S, append(X, rep(NA, length(S)-length(X > > Cheers > Petr > > > > -Original Message- > > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Preeti > > ranjan Pradhan > > Sent: Thursday,

[R] How to Turn OFF Vectors Recycling Rule in Paste()

2015-08-26 Thread Preeti ranjan Pradhan
Hello Team, Platform:Windows 7 32-bit R Version:3.2.2 I have two vectors as follows > S = c("aa", "bb", "cc", "dd", "ee") > X= c("aa", "bb", "cc", "dd") When I trying a paste function > z=paste(S,X) > z I am getting result as [1] "aa aa" "bb bb" "cc cc" "dd dd" "ee aa" I don't need the last

[R] R bioconductor agilent aCGH analysis

2012-07-27 Thread Preeti
Hi, I would like to analyze some agilent aCGH copy number files. As a start, I would like to normalize this data. I don't know what is the standard way to do this. Which package is the standard one that people use for this purpose? The chips that I am looking at are the agilent sure print 1M (G444

Re: [R] Median computation

2012-05-23 Thread Preeti
On Wed, May 23, 2012 at 11:54 AM, peter dalgaard wrote: > > On May 23, 2012, at 19:30 , Preeti wrote: > > > Hmm.. that is interesting... I did this on our server machine which has > > about 200 cores. So memory is not an issue. Also, building the dataframe > > takes

Re: [R] Median computation

2012-05-23 Thread Preeti
-lapply(unique(colnames(df)), function(x) > rowMedians(as.matrix(df[,colnames(df) == x]),na.rm=TRUE)) > > takes really long time to execute ( in hours). Is there a faster way to do > this? > > Thanks! > > On Tue, May 22, 2012 at 3:46 PM, Preeti wrote: > > Thanks Hen

Re: [R] Median computation

2012-05-23 Thread Preeti
Hello Everybody, The code: dfmed<-lapply(unique(colnames(df)), function(x) rowMedians(as.matrix(df[,colnames(df) == x]),na.rm=TRUE)) takes really long time to execute ( in hours). Is there a faster way to do this? Thanks! On Tue, May 22, 2012 at 3:46 PM, Preeti wrote: > Thanks Henrik

Re: [R] Median computation

2012-05-22 Thread Preeti
apply(x, > MARGIN=1, FUN=median). /Henrik > > On Tue, May 22, 2012 at 12:34 PM, Preeti wrote: > > Hi, > > > > I have a 250,000 by 300 matrix. I am trying to calculate the median of > > those columns (by row) with column names that are identical. I would like &

[R] Median computation

2012-05-22 Thread Preeti
Hi, I have a 250,000 by 300 matrix. I am trying to calculate the median of those columns (by row) with column names that are identical. I would like this to be efficient since apply(x,1,median) where x is created by choosing only those columns with same column name and looping on this is taking a

Re: [R] Re : how to plot select points in preexisting persp plot

2010-02-24 Thread Preeti Iyer
Hello, thanks a lot! I used which function with trans3d. It worked as well. Regards, Preeti __ 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

Re: [R] Re : how to plot select points in preexisting persp plot

2010-02-23 Thread Preeti Iyer
-coordinates to plot a text label for select points on this surface? Hope it is clearer now. Regards, Preeti __ 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

[R] Re : how to plot select points in preexisting persp plot

2010-02-22 Thread Preeti Iyer
ion specified. Is there any way to plot only the points I want? Also can this be done using "trans3d" function. I found no topics pertaining to this issue. Regards, Preeti __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/li