[R] extracting selected rows, based on a 'list' of values

From: Tim Smith <tim_smith_666_at_yahoo.com>
Date: Sun 24 Apr 2005 - 03:59:11 EST


Hi,  

I was trying to extract certain rows from a table. For example, if the value in the first column is "a", "d", "k", or "z", then I would like to extract these rows. In other words, if the value in the column is also an element in my list (a,d,k,z), then I would like to extract the row.  

I've looked in the archives and the solutions I could find were restriced to the value in the row name being a single element.  

thanks for the help,  

Tim


        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sun Apr 24 04:03:03 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:25 EST