Trigger Analysis at a Calendar Time
trigger_by_calendar.RdBuilds a Condition that fires when the trial clock reaches a specified
calendar time. The returned Condition should be passed to
Trial$new(conditions = list(...)).
Value
A Condition object.
Examples
cond <- trigger_by_calendar(
cal_time = 12,
analysis = function(df, current_time) {
data.frame(n_enrolled = sum(!is.na(df$enroll_time)))
}
)