Skip to contents

Cut3 by quantile [Experimental]

Usage

cut3_quantile(tbl, var_name, .labels = NULL, .groups = NULL, .inf = TRUE, ...)

Arguments

tbl

data.frame: Database connection or data.frame

var_name

character: variable name

.labels

list: labels for the breaks

.groups

character: name of a groups variable

.inf

logical: indicates if the breaks need to be extended by -Inf and Inf

...

argument passed to quantile

Value

same as tbl input with var_name converted to factor by quantiles

Examples

if (FALSE) {
datos <- data.frame(edad = seq(1:100))
cut3_quantile(datos, "edad")
}