split_at_median.Rd
Dichotomize vector values at their median
split_at_median(
x,
labels = c("low", "high"),
type = "higher",
explicit_na = NA
)
A vector
"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)'.
Vector with two factor labels.
A vector of type factor with two levels.