Try:

mydata[substr(rownames(mydata),1,1)!="U",]

where mydata is a matrix or data.frame.

________________________________________
Daniel Moreira, MD




"Sally" <sagoldes@shaw.ca> 
Sent by: r-help-bounces@r-project.org
02/14/2009 11:48 PM
Please respond to
Sally <sagoldes@shaw.ca>


To
<r-help@r-project.org>
cc
Sally <sagoldes@shaw.ca>
Subject
[R] Delete row if first letter of row name is






Hello!

I am still a beginner.  Can you tell me how to delete a row (from a matrix 
or data.frame) if the row name starts with U?  See example below:


      U179971039     0.058663    0.087575 
      empty1 -0.1296 -0.09105 
      empty2 0.136259 0.398073 
      empty3 0.446041 -0.33997 


Sally

                 [[alternative HTML version deleted]]

______________________________________________
R-help@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.


	[[alternative HTML version deleted]]


