How to subset a grouped dataframe when a date variable is repeated
I am working with a dataset which includes about 20000 study participants. Each study participant had multiple study visits, and each visit is a row of the dataset. In each row there is one column for the date, and then multiple columns for medications on that date (I have just included the first medication column… Read More How to subset a grouped dataframe when a date variable is repeated