Cut numeric x in quantile

Share:

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)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.