Skip to contents

Time Interval Calculator

Usage

timeinterval(
  data,
  dx_date,
  fu_date,
  time_format = "ymd",
  output_unit = "months",
  use_landmark = FALSE,
  landmark_time = 3,
  add_times = TRUE
)

Arguments

data

The data as a data frame.

dx_date

Column containing start dates

fu_date

Column containing end dates

time_format

.

output_unit

.

use_landmark

.

landmark_time

.

add_times

.

Value

A results object containing:

results$todoa html
results$summarya html
results$calculated_timean output