Learn R Programming

packHV (version 2.4)

cut_quanti: Cut a quantitative variable in \(n\) equal parts

Description

Cuts a quantitative variable in \(n\) equal parts

Usage

cut_quanti(x, n, ...)

Value

A factor vector

Arguments

x

a numeric vector

n

numeric, the number of parts: 2 to cut according to the median, and so on...

...

other arguments to be passed in cut

Author

Hugo Varet

Examples

Run this code
cut_quanti(cgd$height, 3)

Run the code above in your browser using DataLab