accrual_time_unit: accrual_time_unit

View source: R/accrual_time_unit.R

accrual_time_unitR Documentation

accrual_time_unit

Description

Generates summary of recruitment per time unit

Usage

accrual_time_unit(accrual_df, unit = c("month", "year", "week", "day"))

Arguments

accrual_df

accrual data frame produced by accrual_create_df with by=NA.

unit

time unit for which the bars should be plotted, one of "month", "year", "week" or "day".

Value

Returns a data frame with the number of patients accrued for each time unit.

Examples


data(accrualdemo)
accrual_df<-accrual_create_df(accrualdemo$date)
accrual_time_unit(accrual_df,"week")
accrual_time_unit(accrual_df,"day")



CTU-Bern/accrualPlot documentation built on April 25, 2024, 12:34 p.m.