I have a dataset with 3 variables: test_date, unique_ID, and location, which provides location of testing and can be either "department" or "practice".
I want to exclude data from my dataset if the unique ID is present for more than one occasion within a 30 day period. Also the location must be "practice".