[R] which question

From: Eleni Christodoulou <elenichri_at_gmail.com>
Date: Fri, 06 Jun 2008 11:44:42 +0300

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 the above command, *mydata *is my data frame, *9 *is the column which I want to display. The rest are just other variables that I use. The *which*command is supposed to retrieve the rows of interst. The rows are well
retrieved, however, if for the certain row, column *9* is NA, the respective element of column *10* is displayed. How can I fix that?

Thank you very much,

        [[alternative HTML version deleted]]

R-help_at_r-project.org mailing list
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. Received on Fri 06 Jun 2008 - 08:52:43 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 06 Jun 2008 - 11:30:39 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive