split_at_median.RdDichotomize vector values at their median
split_at_median(
x,
labels = c("low", "high"),
type = "higher",
explicit_na = NA
)A vector
Vector with two factor labels.
"higher" will split group at above median (vs. equal and below) and "lower" will split group below median (vs. equal and above)
If not NA, NAs will be recoded as a factor level of the provided name. If TRUE, the name will default to '(Missing)'.
A vector of type factor with two levels.