This function serves as a convenience wrapper of dplyr::summarise(), which takes the grouped variables and summarises their gaps in therapy. This function is to be used after propagate_date().
dplyr::summarise()
propagate_date()
summarise_gaps(.data)
Data to be piped into the function
A summary of gaps in therapy
# NOT RUN { library(adheRenceRX) library(dplyr) toy_claims %>% filter(ID == "D") %>% propagate_date(.date_var = date, .days_supply_var = days_supply) %>% summarise_gaps() # }
Run the code above in your browser using DataCamp Workspace