xtile: Create quantiles

Description Usage Arguments Details Examples

View source: R/transform.R

Description

Create quantiles

Usage

1
xtile(x, n = 5, rev = FALSE)

Arguments

x

Numeric variable

n

number of bins to create

rev

Reverse the order of the xtiles

Details

Approach used produces results most similar to Stata

Examples

1
2
xtile(1:10,5)
xtile(1:10,5, rev = TRUE)

radiant-rstats/radiant.data documentation built on Jan. 15, 2019, 1:27 a.m.