Re: [R] How to get row numbers of a subset of rows

2007-11-14 Thread affy snp
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

Re: [R] How to get row numbers of a subset of rows

2007-11-14 Thread Julian Burgos
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

Re: [R] How to get row numbers of a subset of rows

2007-11-14 Thread affy snp
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 > &

Re: [R] How to get row numbers of a subset of rows

2007-11-14 Thread jim holtman
> 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:

Re: [R] How to get row numbers of a subset of rows

2007-11-14 Thread Bert Gunter
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

Re: [R] How to get row numbers of a subset of rows

2007-11-14 Thread jim holtman
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

[R] How to get row numbers of a subset of rows

2007-11-14 Thread affy snp
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.