Learn R Programming

nima (version 0.6.2)

discrete_by_quantile: Discretize a Vector by Quantiles

Description

Discretizes a non-factor input vector and returns the result as numeric.

Usage

discrete_by_quantile(x, ...)

Arguments

x

A vector containing arbitrary data.

...

Additional arguments passed to quantcut.

Value

A numeric vector with the data re-coded to based on the quantiles.

Examples

Run this code
# NOT RUN {
x <- rnorm(1000)
discrete_by_quantile(x)
# }

Run the code above in your browser using DataLab