View source: R/sig_surv_plot.R View source: R/surv_group.R
| calculate_break_month | R Documentation |
Divides time duration into specified blocks for analysis.
calculate_break_month(input, block = 6, time_type = c("month", "day"))
input |
Numeric vector of time durations. |
block |
Number of blocks. Default is 6. |
time_type |
Units: "month" or "day". Default is "month". |
Numeric vector of breakpoints, rounded to nearest multiple of 5.
Dongqiang Zeng
time_data <- c(24, 36, 12, 48)
blocks <- calculate_break_month(input = time_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.