Re: [R] return counts of elements on a table column depending on elements on another column

2011-06-08 Thread Martin Morgan
On 06/08/2011 03:06 PM, ads pit wrote: Hi, I am given the following table: head(hsa_refseq) chr genome regionstart stop nu strand nu.1nu.2 gene_id 1 chr1 hg19_refGeneCDS 6742 6751 0 +0 gene_id NM_032291 2 chr1 hg19_refGene exon 66999825 6751 0

[R] return counts of elements on a table column depending on elements on another column

2011-06-08 Thread ads pit
Hi, I am given the following table: > head(hsa_refseq) chr genome regionstart stop nu strand nu.1nu.2 gene_id 1 chr1 hg19_refGeneCDS 6742 6751 0 +0 gene_id NM_032291 2 chr1 hg19_refGene exon 66999825 6751 0 +. gene_id NM_032291 3 chr1 hg19_