Re: [R] Delete row if first letter of row name is
Try: mydata[substr(rownames(mydata),1,1)!="U",] where mydata is a matrix or data.frame. Daniel Moreira, MD "Sally" Sent by: r-help-boun...@r-project.org 02/14/2009 11:48 PM Please respond to Sally To cc Sally Subject [R]
[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.0586630.087575 empty1 -0.1296 -0.09105 empty2 0.136259 0.398073 empty3 0.446041 -0.33997 Sally