cut_quanti function

Cut a quantitative variable in nn equal parts

Cut a quantitative variable in nn equal parts

Cuts a quantitative variable in nn equal parts

cut_quanti(x, n, ...)

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

Returns

A factor vector

Examples

cut_quanti(cgd$height, 3)

Author(s)

Hugo Varet

  • Maintainer: Hugo Varet
  • License: GPL (>= 2)
  • Last published: 2025-03-24

Useful links