Re: [R] which question

2008-06-06 Thread Richard Pearson
I didn't get any attached data, but my suspicion here is that you have somehow got RefSeq IDs in column 8 of human, as well as the gene symbols. Did you read this data in from a text file? Eleni Christodoulou wrote: An example is: symbol=human[which(human[,3] %in% genes.sam.names),8] The dat

Re: [R] which question

2008-06-06 Thread Eleni Christodoulou
An example is: symbol=human[which(human[,3] %in% genes.sam.names),8] The data* human* and *genes.sam.names* are attached. The result of the above command is: > symbol [1] CCL18 MARCO SYT13 [4] FOXC1 CDH3 [7] CA12 CELSR1

Re: [R] which question

2008-06-06 Thread Dieter Menne
Eleni Christodoulou gmail.com> writes: > I was trying to select a column of a data frame using the *which* command. I > was actually selecting the rows of the data frame using *which, *and then > displayed a certain column of it. The command that I was using is: > sequence=*mydata*[*which*(human[

[R] which question

2008-06-06 Thread Eleni Christodoulou
Hello list, I was trying to select a column of a data frame using the *which* command. I was actually selecting the rows of the data frame using *which, *and then displayed a certain column of it. The command that I was using is: sequence=*mydata*[*which*(human[,3] %in% genes.sam.names),*9*] In th