calculate_break_month: Break Time Into Blocks

View source: R/sig_surv_plot.R View source: R/surv_group.R

calculate_break_monthR Documentation

Break Time Into Blocks

Description

Divides time duration into specified blocks for analysis.

Usage

calculate_break_month(input, block = 6, time_type = c("month", "day"))

Arguments

input

Numeric vector of time durations.

block

Number of blocks. Default is 6.

time_type

Units: "month" or "day". Default is "month".

Value

Numeric vector of breakpoints, rounded to nearest multiple of 5.

Author(s)

Dongqiang Zeng

Examples

time_data <- c(24, 36, 12, 48)
blocks <- calculate_break_month(input = time_data)

IOBR documentation built on May 30, 2026, 5:07 p.m.