powered by
Split a continuous variable by custom values. Converts a continuous variable to a categorical variable.
div_custom(var, div, data)
A string. A variable to be summarized given as a string.
A numeric vector. The variable can be split into at least two levels by custom values.
A data frame in which these variables exist.
A factor variable.
# NOT RUN { ## 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) # }
Run the code above in your browser using DataLab