Skip to contents

This function processes the dataframe to find the latest assessment date before a disease event. If a disease event (as defined in the corresponding columns) occurs, this date is considered the latest.

Usage

add_time_to_diseaseevent(df)

Arguments

df

A data frame with columns that include assessment dates, histology assessment dates, and disease recurrence information.

Value

A data frame with added columns for the latest assessment date and the time to the event in months.