[R] which question

Dieter Menne dieter.menne at menne-biomed.de
Fri Jun 6 12:23:32 CEST 2008


Eleni Christodoulou <elenichri <at> 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[,3] %in% genes.sam.names),*9*]
....
Please provide a running example. The *mydata* are difficult to read.


Dieter



More information about the R-help mailing list