Skip to contents

Split a continuous variable into quintiles

Usage

derive_quintile_category(col, labels = c("1-short", "2", "3", "4", "5-long"))

Arguments

col

the continuous data column that is to be categorised by quintile.

labels

the category labels

Value

a derive_... style function that augments a data set with col xxx with col xxx_quintile containing the quintiles