[R] Locate Patients who have multiple high blood pressure readings

2013-01-31 Thread Weijia Wang
On Thu, Jan 31, 2013 at 10:29 AM, Weijia Wang wwang@gmail.com wrote: Hi, I have a new question about subsetting in R. Say we have this data frame: PT_ID Blood_Pressure OBS_TYPE 92 1900 90.0 DBP 94 1900 90.0 DBP 174 2900 140.0 SBP 176

Re: [R] Locate Patients who have multiple high blood pressure readings

2013-01-31 Thread Bert Gunter
Well, since no one has responded Please use ?dput to provide data in your posts. There are likely zillions of way to go about this. Following is one way based on ?duplicated that I think works, but I make no claims for either elegance or efficiency. Others may do lots better. But maybe it

Re: [R] Locate Patients who have multiple high blood pressure readings

2013-01-31 Thread William Dunlap
To: Weijia Wang Cc: r-help@r-project.org Subject: Re: [R] Locate Patients who have multiple high blood pressure readings Well, since no one has responded Please use ?dput to provide data in your posts. There are likely zillions of way to go about this. Following is one way

Re: [R] Locate Patients who have multiple high blood pressure readings

2013-01-31 Thread Gabor Grothendieck
On Thu, Jan 31, 2013 at 10:51 AM, Weijia Wang wwang@gmail.com wrote: On Thu, Jan 31, 2013 at 10:29 AM, Weijia Wang wwang@gmail.com wrote: Hi, I have a new question about subsetting in R. Say we have this data frame: PT_ID Blood_Pressure OBS_TYPE 92 1900 90.0

Re: [R] Locate Patients who have multiple high blood pressure readings

2013-01-31 Thread arun
. - Original Message - From: Weijia Wang wwang@gmail.com To: r-help@r-project.org Cc: Sent: Thursday, January 31, 2013 10:51 AM Subject: [R] Locate Patients who have multiple high blood pressure readings On Thu, Jan 31, 2013 at 10:29 AM, Weijia Wang wwang@gmail.com wrote: Hi, I have a new