Skip to contents

Matches phase/condition/treatment_phase (case-insensitive).

Usage

find_phase_var(data)

Arguments

data

Data frame.

Value

Column name, or NULL if no match.

Examples

find_phase_var(data.frame(condition = c("A", "B"), outcome = c(1, 2)))
#> [1] "condition"