[R] need help explain the routine input parameters for seROC and cROC found in the R archive

2009-10-27 Thread Waverley @ Palo Alto
(nn*na)) > se > } > > cROC<-function(AUC1,na1,nn1,AUC2,na2,nn2,r){ > se1<-seROC(AUC1,na1,nn1) > se2<-seROC(AUC2,na2,nn2) > > sed<-sqrt(se1^2+se2^2-2*r*se1*se2) > zad<-(AUC1-AUC2)/sed > p<-dnorm(zad) > a<-list(zad,p) > a > } >

[R] how to fetch rows with certain characteristics

2009-10-28 Thread Waverley @ Palo Alto
to return a matrix of 1.2 1 2.0 2 1.3 3 Can someone suggest how to code for that? The second column can be of characters. Thanks much. -- Waverley @ Palo Alto __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] how to fetch rows with certain characteristics

2009-10-29 Thread Waverley @ Palo Alto
;])) > > Most of that is just formatting it in the way you requested. All you > need to compute the values is > > tapply(x[,1], x[,2], min) > > -Ista > > On Thu, Oct 29, 2009 at 1:47 AM, Waverley @ Palo Alto > wrote: >> Hi, >> >> I have a matrix, first

Re: [R] how to fetch rows with certain characteristics

2009-10-29 Thread Waverley @ Palo Alto
(x) >> x.min <- tapply(x[,1], x[,2], min) >> x[x[,1] %in% x.min,] >> ## all matches >      V1 V2 > [1,] 1.2  1 > [2,] 1.2  1 > [3,] 2.0  2 > [4,] 1.4  3 >> ## unique matches >> unique(x[x[,1] %in% x.min,]) >      V1 V2 > [1,] 1.2  1 > [2,]

[R] question about function heatmap

2009-11-17 Thread Waverley @ Palo Alto
the borders are. Can someone help? Essentially I want the dendro tree of the genes which are grouped after the clustering so that, e.g., I want to check whether genes clustered together are in the same pathway etc. Thanks in advance. -- Waverley @ Palo Alto

[R] Question to use R plot GO pie chart

2009-12-24 Thread Waverley @ Palo Alto
Hi, I have a list of IPI gene IDs. I want to find out whether there is a package which can map the gene ontology to these IPIs, and plot the pie chart to demonstrate the molecular function distributions. The input is like the following gene IPI IDs: IPI:IPI8860.1|SWISS-PROT:Q9BXJ4-1|TREMBL:Q

[R] solicit help to read in 384 plate color image

2014-04-04 Thread Waverley @ Palo Alto
Hi, I am doing an experiment which results different colors of different intensities in the 384 micro titer plate. I took a picture of the plate by scanning in the image as a jpeg file and now I want to 1. read in the image file 2. grid the content 3. need to extract the intensity and color of e

[R] program R using mac Xcode

2010-06-17 Thread Waverley @ Palo Alto
Hi, I am starting to use Xcode a lot for C/C++ programming. Can you do R programming in Xcode? If can, how to configure to enable this? Much thank in advance. -- Waverley @ Palo Alto __ R-help@r-project.org mailing list https://stat.ethz.ch

[R] how to implement string pattern extraction in R

2010-08-22 Thread Waverley @ Palo Alto
Hi, In perl, to get a substring matching a particular pattern can be implemented like the following example: $x = ".txt"; if ($x=~ /(.*?)\.txt/){ $prefix = $1; } So how to do the same thing in R? Can someone provide me the code sample? Thanks much in advance. -- Waverley @

Re: [R] how to implement string pattern extraction in R

2010-08-22 Thread Waverley @ Palo Alto
code similar to that in perl to extract the prefix out of the string. Thanks much. On Sun, Aug 22, 2010 at 3:05 PM, Waverley @ Palo Alto wrote: > Hi, > > In perl, to get a substring matching a particular  pattern can be > implemented like the following example: > > $x = ".

[R] R program google search

2010-09-03 Thread Waverley @ Palo Alto
Hi, Can someone help as how to use R to program google search in the R code? I know that other languages can allow or have the google search API If someone can give me some links or sample code I would greatly appreciate. Thanks. -- Waverley @ Palo Alto

Re: [R] R program google search

2010-09-03 Thread Waverley @ Palo Alto
g the AJAX Search API. What about R? Thanks. On Fri, Sep 3, 2010 at 2:23 PM, Waverley @ Palo Alto wrote: > Hi, > > Can someone help as how to use R to program google search in the R > code?  I know that other languages can allow or have the google search > API > > If someone c

Re: [R] R program google search

2010-09-07 Thread Waverley @ Palo Alto
ng} . "(" . $result->{url} . ")\n"; # etc } if(!$i){ print "Sorry, but there were no results.\n"; } On Fri, Sep 3, 2010 at 2:23 PM, Waverley @ Palo Alto wrote: > Hi, > > Can someone help as how to use R to program google search in the R > co

[R] User R to create MySQL database and table

2010-05-22 Thread Waverley @ Palo Alto
provide me some sample code to create a database and table? Specifically create a database first, then create a table inside the database. Thanks a lot in advance. -- Waverley @ Palo Alto __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

[R] online recursive lssvm r package

2011-11-10 Thread Waverley @ Palo Alto
Hi, I am looking for a R package which can do online recursive training, e.g. online recursive LSSVM algorithm. Can some one help? Thanks. Waverley. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.