Skip to contents

Filters a dataframe to identify rows with side effect values meeting a specified grade threshold, retaining relevant clinical information for analysis.

Usage

filter_grade_threshold(df, side_effect_cols, grade_threshold = 4)

Arguments

df

DataFrame containing the patient data

side_effect_cols

Character vector specifying the side effect columns to check

grade_threshold

Numeric, the CTCAE grade threshold to filter by (default: 4)

Value

DataFrame containing only rows with events meeting the threshold criteria