cut_by_quantile: Convert numeric vector to factor, using quantiles intervals

View source: R/cut_by_quantile.r

cut_by_quantileR Documentation

Convert numeric vector to factor, using quantiles intervals

Description

Divides the range of a numeric vector by the quantiles provided ('q').

Usage

cut_by_quantile(x, q = seq(0, 1, by = 0.2))

Arguments

x

A numeric vector

q

A numeric vector

Value

A factor vector with the interval range of the quantiles.

Examples


x <- rnorm(10)

cut_by_quantile(x)


vbfelix/relper documentation built on May 10, 2024, 10:50 p.m.