.tab_split | R Documentation |
Split a metric column into categories based on the median
.tab_split(data, col, labels = TRUE)
data |
A data frame containing the column to be split. |
col |
The column to split. |
labels |
Logical; if |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.