Re: [R] create a new data frame after comparing two columns of the previous data frame

2011-06-27 Thread Petr PIKAL
Hi r-help-boun...@r-project.org napsal dne 28.06.2011 02:45:01: > > Right. You forgot the comma! If you want to resolve this rather cryptic advice see ?"[" Regards Petr > > -- > David. > > On Jun 27, 2011, at 7:10 PM, Nanami wrote: > > > it's a table; I read it from a file; I've tried to

Re: [R] create a new data frame after comparing two columns of the previous data frame

2011-06-27 Thread David Winsemius
Right. You forgot the comma! -- David. On Jun 27, 2011, at 7:10 PM, Nanami wrote: it's a table; I read it from a file; I've tried to make it look prettier: head(intra) chr miRNA start end strand ACC hsa_ID region region_start region_end chr1 miRNA 1

Re: [R] create a new data frame after comparing two columns of the previous data frame

2011-06-27 Thread Nanami
it's a table; I read it from a file; I've tried to make it look prettier: > head(intra) chr miRNA start end strand ACC hsa_ID region region_start region_end chr1 miRNA 1102484 1102578 + ACC="MI342"; ID="hsa-mir-200b"; exon 1102

Re: [R] create a new data frame after comparing two columns of the previous data frame

2011-06-27 Thread David Winsemius
On Jun 27, 2011, at 6:56 PM, jim holtman wrote: Use "&" instead of "&&" Yes, and don't forget the comma! -- David. On Mon, Jun 27, 2011 at 6:01 PM, Nanami 13 wrote: Hi everyone, I am trying to find a way to filter a table; If I am given for example the following table: head(intra)

Re: [R] create a new data frame after comparing two columns of the previous data frame

2011-06-27 Thread jim holtman
Use "&" instead of "&&" On Mon, Jun 27, 2011 at 6:01 PM, Nanami 13 wrote: > Hi everyone, > > I am trying to find a way to filter a table; If I am given for example the > following table: >> head(intra) >   chr miRNA   start     end strand              ACC             hsa_ID > region region_start

[R] create a new data frame after comparing two columns of the previous data frame

2011-06-27 Thread Nanami 13
Hi everyone, I am trying to find a way to filter a table; If I am given for example the following table: > head(intra) chr miRNA start end strand ACC hsa_ID region region_start region_end gene_id transcrip_id 1 chr1 miRNA 1102484 1102578 + ACC="MI342";