Hmisc::cut2 bones repackaged to remove errors with importing Hmisc
cut3(
x,
cuts,
m = 150,
g,
digits,
minmax = TRUE,
oneval = TRUE,
onlycuts = FALSE,
formatfun = format,
...
)vector of cut
numeric vector to classify into intervals.
cut points.
desired minimum number of observations in a group. The algorithm does not guarantee that all groups will have at least m observations.
number of quantile groups
number of significant digits to use in constructing levels.
if cuts is specified but min(x)<min(cuts) or max(x)>max(cuts), augments cuts to include min and max x
if an interval contains only one unique value, the interval will be labeled with the formatted version of that value instead of the interval endpoints, unless oneval=FALSE
set to TRUE to only return the vector of computed cuts. This consists of the interior values plus outer ranges.
format function
additional arguments passed to formatfun