Split a metric column into categorical based on median
.tab_split(data, col, labels = TRUE)
A data frame with the specified column converted into categorical labels based on its median value. The split threshold (median) is stored as an attribute of the column.
A data frame containing the column to be split.
The column to split.
Logical; if TRUE
(default), use custom labels for the split categories based
on the column title. If FALSE
, use the column name directly.