Re: [R] extract common rows from a dataframe

2013-06-11 Thread arun
Hi, Try this: dat1<- read.table(text=" DEPTH SALINITY DEPTH SALINITY 18    87    39.06    94    39.06 19  173    39.05  141  NA 20  260    39.00  188    39.07 21  312    38.97  207    39.03 22    1    39.36    1    39.35 23    10    39.36    10    39.33 24    20    39.36    20    39.33 25    30

Re: [R] extract common rows from a dataframe

2013-06-11 Thread Bert Gunter
1. What does "common" mean? (noting that 39.35 != 39.33 ) 2. But: ?"[" ## or easier, but less flexible ?subset Also, spend some time with "An Introduction to R." Unless I misunderstand, this is very basic, and you need to first put in some time to learn R's basic procedures instead of posting h