Thank you very much, Julian. I got it.
Best,
Allen
On Nov 14, 2007 2:38 PM, Julian Burgos <[EMAIL PROTECTED]> wrote:
> One way to do this is
>
> range(which(B[,2]==1))
>
> Julian
>
>
> affy snp wrote:
> > Hello list,
> >
> > I read in a txt file using
> >
> > >
> > by specifying the row.name
One way to do this is
range(which(B[,2]==1))
Julian
affy snp wrote:
> Hello list,
>
> I read in a txt file using
>
>
> by specifying the row.names=NULL so that the rows are numbered.
> Below is an example after how the table looks like using
>
>
> SNPChromosome Phys
clinical Statistics
> >
> >
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> > Behalf Of jim holtman
> > Sent: Wednesday, November 14, 2007 8:39 AM
> > To: affy snp
> > Cc: r-help@r-project.org
> &
> Genentech Nonclinical Statistics
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of jim holtman
> Sent: Wednesday, November 14, 2007 8:39 AM
> To: affy snp
> Cc: r-help@r-project.org
> Subject: Re:
14, 2007 8:39 AM
To: affy snp
Cc: r-help@r-project.org
Subject: Re: [R] How to get row numbers of a subset of rows
Here is a way of doing it using 'rle':
> x <- read.table(textConnection(" SNPChromosome
PhysicalPosition
+ 1 SNP_A-1909444 1
Here is a way of doing it using 'rle':
> x <- read.table(textConnection(" SNPChromosome
> PhysicalPosition
+ 1 SNP_A-1909444 1 7924293
+ 2 SNP_A-2237149 1 8173763
+ 3 SNP_A-4303947 1 8191853
+ 4 SNP_A-2236359 1
Hello list,
I read in a txt file using
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-contained, reproducible code.
7 matches
Mail list logo