Skip to content
Prev 316582 / 398506 Next

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 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
suffices.


## Untested
## I assume the data is provided in a data frame named dd.

## All PT_ID's with >=1 high readings in SBP or in DBP
## id's that appear more than once in either
## you can subset your data frame to match just these,  e.g. via
%in%, if you like.


Cheers,
Bert
On Thu, Jan 31, 2013 at 7:51 AM, Weijia Wang <wwang.nyu at gmail.com> wrote: