xtile: Cut numeric x in quantile

Description

Cut numeric x in quantile

Usage

1
xtile(x,n)

Arguments

x

numeric vector

n

number of quantiles

Value

A factor vector.

Examples

1
2
tertiles <- xtile(rnorm(1000),3)
table(tertiles)

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.