Re: [R] Deleting specific rows from a dataframe

2013-07-15 Thread arun
))=="P")  ), ]) #   user  system elapsed #351.492   0.040 352.164  row.names(res2)<- row.names(res3) attr(res3,"row.names")<- attr(res2,"row.names")  identical(res2,res3) #[1] TRUE A.K. - Original Message - From: arun To: Chirag Gupta Cc: R help Se

Re: [R] Deleting specific rows from a dataframe

2013-07-15 Thread arun
p@r-project.org Cc: Sent: Monday, July 15, 2013 9:10 PM Subject: [R] Deleting specific rows from a dataframe I have a data frame like shown below   sample1 sample2 sample3 sample4 sample5  a P P I P P  b P A P P A  c P P P P P  d P P P P P  e M P M A P  f P P P P P  g P P P A P  h P P P P P I w

[R] Deleting specific rows from a dataframe

2013-07-15 Thread Chirag Gupta
I have a data frame like shown below sample1 sample2 sample3 sample4 sample5 a P P I P P b P A P P A c P P P P P d P P P P P e M P M A P f P P P P P g P P P A P h P P P P P I want to keep only those rows which have all "P" across all the columns. Since the matrix is large (about 20,000