div_custom | R Documentation |
Split a continuous variable by custom values. Converts a continuous variable to a categorical variable.
div_custom(var, div, data)
var |
A string. A variable to be summarized given as a string. |
div |
A numeric vector. The variable can be split into at least two levels by custom values. |
data |
A data frame in which these variables exist. |
A factor variable.
## Load Mayo Clinic Primary Biliary Cirrhosis Data library(survival) library(tableeasy) data(pbc) ## Check variables head(pbc) ## div_custom(var = 'age',div = c(40,60),data = pbc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.