Re: [R] all duplicated wanted

2012-08-03 Thread arun
1:59 AM Subject: Re: [R] all duplicated wanted Hi, A.K. Thanks for your example, that is enlighten. What I am concerned is, to show all duplicates. 'duplicated' only shows me the second duplicate of each ID. For example, I have these ID  AGE GENER LDL 1    25    M          137 1    25 

Re: [R] all duplicated wanted

2012-08-03 Thread arun
  3  1  2  5  7  9  8 12 I hope this is what you wanted. A.K. - Original Message - From: Weijia Wang To: r-help@r-project.org Cc: Sent: Friday, August 3, 2012 3:06 AM Subject: [R] all duplicated wanted Hi, Has anyone been able to figure out how to print all duplicated observati

Re: [R] all duplicated wanted

2012-08-03 Thread peter dalgaard
On Aug 3, 2012, at 09:06 , Weijia Wang wrote: > Hi, > > Has anyone been able to figure out how to print all duplicated observations? > > I have a dataset, with patients ID, and other lab records. > > Some patients have multiple lab records, but 'duplicated' ID will only show > me the duplicat

[R] all duplicated wanted

2012-08-03 Thread Weijia Wang
Hi, Has anyone been able to figure out how to print all duplicated observations? I have a dataset, with patients ID, and other lab records. Some patients have multiple lab records, but 'duplicated' ID will only show me the duplicates, not the original observation. How can I print both the orig