adheRenceRX (version 1.0.0)

summarise_gaps: Summarise Gaps in Therapy

Description

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().

Usage

summarise_gaps(.data)

Arguments

.data

Data to be piped into the function

Value

A summary of gaps in therapy

Examples

Run this code
# 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