powered by
This function lets the user quickly calculate cuts for quantiles and discretize numerical values into cateogorical values.
quants(values, splits = 10, return = "summary")
Vector. Values to calculate quantile cuts
Integer. How many cuts should split the values?
Character. Return "summary" or "labels"
Other Calculus: corr(), deg2num(), dist2d(), model_metrics()
corr()
deg2num()
dist2d()
model_metrics()
# NOT RUN { data(dft) # Titanic dataset quants(dft$Age, splits = 5) quants(dft$Age, splits = 5, return = "labels")[1:10] # }
Run the code above in your browser using DataLab