accrual_time_unit {accrualPlot} | R Documentation |
Generates summary of recruitment per time unit
accrual_time_unit(accrual_df, unit = c("month", "year", "week", "day"))
accrual_df |
accrual data frame produced by |
unit |
time unit for which the bars should be plotted,
one of |
Returns a data frame with the number of patients accrued for each time unit.
data(accrualdemo)
accrual_df<-accrual_create_df(accrualdemo$date)
accrual_time_unit(accrual_df,"week")
accrual_time_unit(accrual_df,"day")